Function at 0x3a9d87a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x8c8
mov eax, 0x3a9f3856
call fcn.3a9f23af
mov edi, ecx
mov dword [ebp - 0x7b8], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7d8], eax
mov ebx, edx
mov dword [ebp - 0x7dc], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x808], eax
mov esi, dword [ebp + 0x14]
push 0x380
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.3a9ea3d0
add esp, 0xc
or dword [ebp - 0x42c], 0xffffffff
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], eax
and dword [ebp - 4], 0
mov dword [edi + 0x54], esi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x50], eax
push esi
push dword [ebp - 0x7d8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x81c], eax
mov eax, 0xff000164
mov ecx, 0xff000064
push eax
push ecx
push dword [ebp - 0x7d8]
mov edx, esi
mov ecx, edi
call fcn.3a9de20a
call fcn.3a9da701
push 0x8c
push 0
lea eax, [ebp - 0xac]
push eax
call fcn.3a9ea3d0
add esp, 0xc
mov eax, dword [ebx]
mov esi, dword [ebp + 0x18]
lea edi, [eax + esi + 1]
mov dword [ebp - 0xa8], edi
mov ecx, dword [ebx + 8]
mov edx, ecx
sub edx, esi
mov dword [ebp - 0xa0], edx
cmp edx, edi
mov edx, edi
jge 0x3a9d887b
mov dword [ebp - 0xa0], edx
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x88]
dec eax
mov dword [ebp - 0x84], eax
xor ecx, ecx
mov dword [ebp - 0x80], ecx
or dword [ebp - 0x28], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0xac], 2
mov dword [ebp - 0x3c], 0xffff0001
mov dword [ebp - 0x7c8], edx
mov dword [ebp - 0x7ec], edx
mov dword [ebp - 0x7f4], ecx
or dword [ebp - 0x7d4], 0xffffffff
mov byte [ebp - 0x7cc], cl
mov byte [ebp - 0x7ad], 1
mov byte [ebp - 0x7cd], cl
mov dword [ebp - 0x7c0], ecx
mov dword [ebp - 0x7bc], ecx
mov eax, dword [ebp - 0x808]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x804], eax
cmp eax, ecx
jle 0x3a9d925c
or dword [ebp - 0x7e0], 0xffffffff
mov edi, dword [ebp - 0x7bc]
mov ecx, edi
lea esi, [ebp - 0x7fc]
mov eax, dword [ebp - 0x808]
call fcn.3a9de20a
lea ecx, [ebp - 0x42c]
push ecx
mov ebx, eax
call fcn.3a9de20a
cmp dword [ebp - 0x42c], 1
je 0x3a9d8c65
cmp dword [ebp - 0x42c], 2
je 0x3a9d8c65
mov eax, dword [ebp - 0x42c]
imul eax, eax, 0xc
xor ebx, ebx
mov esi, dword [ebp - 0x7b8]
cmp byte [eax + 0x3a9d425e], bl
jne 0x3a9d89c6
test dword [ebp - 0x224], 0x2000
je 0x3a9d89c6
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
push dword [ebp - 0xe4]
push dword [esi + 0x50]
mov ecx, dword [ebp - 0x428]
call fcn.3a9d62b5
cmp eax, 0xffffffff
je 0x3a9d89c6
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x82c], ebx
lea eax, [ebp - 0x838]
push eax
lea ebx, [esi + 0x84]
call fcn.3a9de20a
mov dword [ebp - 0x7e0], eax
xor ebx, ebx
mov eax, dword [ebp - 0x42c]
cmp eax, 6
je 0x3a9d8c18
cmp eax, 7
je 0x3a9d8c0f
cmp eax, 0xe
je 0x3a9d8bb3
jle 0x3a9d8c2f
cmp eax, 0x10
jle 0x3a9d89fb
cmp eax, 0x15
jne 0x3a9d8c2f
cmp byte [ebp - 0x7ad], bl
jne 0x3a9d8a3b
and dword [ebp - 0xac], 0xffffffdf
mov eax, dword [esi + 0x6c]
lea edi, [eax - 1]
mov dword [ebp - 0x84], edi
mov eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xac]
push eax
lea ebx, [esi + 0x60]
call fcn.3a9de20a
inc edi
mov dword [ebp - 0x88], edi
and dword [ebp - 0x7c], 0
xor ebx, ebx
mov dword [ebp - 0x80], ebx
mov ecx, dword [ebp - 0x7dc]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x18]
lea edi, [eax + edx + 1]
mov dword [ebp - 0xa8], edi
mov ecx, dword [ecx + 8]
mov edx, ecx
sub edx, dword [ebp + 0x18]
mov dword [ebp - 0xa0], edx
cmp edx, edi
jge 0x3a9d8a6b
mov dword [ebp - 0xa0], edi
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x7ec], edi
mov dword [ebp - 0x78], 0xffff
mov dword [ebp - 0x3c], 0xffff0001
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
or eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xac], 2
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x7f4], ebx
cmp dword [ebp - 0x42c], 0xf
jne 0x3a9d8b0c
push dword [ebp - 0x7e0]
lea eax, [ebp - 0x7f4]
push eax
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x7d8]
lea edi, [ebp - 0x42c]
lea esi, [ebp - 0xac]
call fcn.3a9de20a
or eax, 0xffffffff
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x7b8]
cmp dword [ebp - 0x42c], 0x15
jne 0x3a9d8ba4
push eax
xor ebx, ebx
push 0x10
pop edi
mov eax, esi
call fcn.3a9de20a
push 0x23
pop ecx
lea esi, [ebp - 0xac]
lea edi, [ebp - 0x8d4]
rep movsd dword es:[edi], dword [esi]
inc ebx
mov dword [ebp - 0x8a8], ebx
push dword [ebp - 0x7e0]
lea eax, [ebp - 0x89c]
push eax
push 0
push dword [ebp - 0x7d8]
lea edi, [ebp - 0x42c]
lea esi, [ebp - 0x8d4]
call fcn.3a9de20a
or dword [ebp - 0x8d4], ebx
push dword [ebp - 0xe8]
push dword [ebp - 0x7d8]
mov eax, dword [ebp - 0xec]
call fcn.3a9de20a
mov dword [ebp - 0x880], eax
mov eax, esi
push eax
mov ebx, dword [ebp - 0x7b8]
add ebx, 0x60
call fcn.3a9de20a
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x7b8]
mov byte [ebp - 0x7ad], 1
mov dword [ebp - 0x7c8], edi
jmp 0x3a9d8c2f
cmp byte [ebp - 0x7ad], bl
jne 0x3a9d8c0a
mov eax, dword [esi + 0x6c]
lea edi, [eax - 1]
mov dword [ebp - 0x84], edi
lea eax, [ebp - 0xac]
push eax
lea ebx, [esi + 0x60]
call fcn.3a9de20a
mov byte [ebp - 0x7ad], 1
and dword [ebp - 0xac], 0xfffffffd
mov eax, dword [ebp - 0x7ec]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x7c8], eax
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
inc edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x7c], eax
jmp 0x3a9d8c2f
inc dword [ebp - 0x7c]
jmp 0x3a9d8c2f
or dword [ebp - 0x7d4], 0xffffffff
jmp 0x3a9d8c2f
mov dword [ebp - 0x7d4], edi
mov eax, dword [ebp - 0x224]
shr eax, 9
and al, 1
mov byte [ebp - 0x7cc], al
push dword [ebp - 0x7e0]
lea ebx, [ebp - 0x224]
mov edi, dword [ebp - 0x42c]
mov eax, esi
call fcn.3a9de20a
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x7c0], eax
jge 0x3a9d9215
mov dword [ebp - 0x7c0], eax
jmp 0x3a9d9215
mov eax, dword [ebp - 0x428]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x3a9d8c6e
sub eax, edx
sar eax, 1
mov dword [ebp - 0x7e4], eax
cmp byte [ebp - 0x7ad], cl
jne 0x3a9d8cc4
cmp byte [ebp - 0x7cd], cl
jne 0x3a9d8cc4
cmp dword [ebp - 0x7c0], 5
je 0x3a9d8ca4
cmp dword [ebp - 0x7c0], 1
jne 0x3a9d8cc4
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x7b8]
xor ebx, ebx
call fcn.3a9de20a
mov eax, dword [ebp - 0x820]
add dword [ebp - 0x7c8], eax
mov edi, dword [ebp - 0xa0]
sub edi, dword [ebp - 0x7c8]
and dword [ebp - 0x7b4], 0
cmp dword [ebp - 0x42c], 1
jne 0x3a9d8d2f
push dword [ebp - 0x7b8]
call fcn.3a9de20a
push eax
push dword [ebp - 0x7d8]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x7e4], 0
jbe 0x3a9d8eac
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x7e4]
push dword [ebp - 0x428]
push dword [ebp - 0x7d8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x810]
jmp 0x3a9d8ea6
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
push dword [ebp - 0xe4]
mov eax, dword [ebp - 0x7b8]
push dword [eax + 0x50]
mov ecx, dword [ebp - 0x428]
call fcn.3a9d62b5
mov esi, eax
cmp esi, 0xffffffff
je 0x3a9d9215
mov dword [ebp - 0x838], esi
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x838]
push eax
mov ebx, dword [ebp - 0x7b8]
add ebx, 0x84
call fcn.3a9de20a
mov dword [ebp - 0x7e0], eax
mov ebx, 0xffff0001
cmp dword [ebp - 0xd0], ebx
jne 0x3a9d8dc3
imul esi, esi, 0x30
add esi, dword [0x3a9f81dc]
mov eax, dword [esi + 0xc]
jmp 0x3a9d8e00
cmp dword [ebp - 0xcc], 2
jne 0x3a9d8de9
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
push 0x64
push dword [ebp - 0xd0]
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
jmp 0x3a9d8e00
push dword [ebp - 0xcc]
push dword [ebp - 0x7d8]
mov eax, dword [ebp - 0xd0]
call fcn.3a9de20a
mov dword [ebp - 0x7b4], eax
cmp dword [ebp - 0xc8], ebx
je 0x3a9d8e59
cmp dword [ebp - 0xc4], 2
jne 0x3a9d8e34
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
push 0x64
push dword [ebp - 0xc8]
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
jmp 0x3a9d8e4b
push dword [ebp - 0xc4]
push dword [ebp - 0x7d8]
mov eax, dword [ebp - 0xc8]
call fcn.3a9de20a
cmp dword [ebp - 0x7b4], eax
jg 0x3a9d8e59
mov dword [ebp - 0x7b4], eax
cmp dword [ebp - 0xc0], ebx
je 0x3a9d8eac
cmp dword [ebp - 0xbc], 2
jne 0x3a9d8e87
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
push 0x64
push dword [ebp - 0xc0]
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
jmp 0x3a9d8e9e
push dword [ebp - 0xbc]
push dword [ebp - 0x7d8]
mov eax, dword [ebp - 0xc0]
call fcn.3a9de20a
cmp dword [ebp - 0x7b4], eax
jl 0x3a9d8eac
mov dword [ebp - 0x7b4], eax
cmp byte [ebp - 0x7ad], 0
jne 0x3a9d9159
cmp dword [ebp - 0x7b4], edi
jle 0x3a9d915f
or dword [ebp - 0x7c4], 0xffffffff
or dword [ebp - 0x7f0], 0xffffffff
mov edi, dword [ebp - 0x7bc]
dec edi
js 0x3a9d90a3
push 0x380
push 0
lea eax, [ebp - 0x7ac]
push eax
call fcn.3a9ea3d0
add esp, 0xc
or dword [ebp - 0x7ac], 0xffffffff
lea eax, [ebp - 0x7a4]
mov dword [ebp - 0x7a8], eax
mov byte [ebp - 4], 1
mov ecx, edi
lea esi, [ebp - 0x840]
mov eax, dword [ebp - 0x808]
call fcn.3a9de20a
lea ecx, [ebp - 0x7ac]
push ecx
mov ebx, eax
call fcn.3a9de20a
cmp dword [ebp - 0x430], 4
jne 0x3a9d9043
push 0
mov esi, dword [ebp - 0x7b8]
push esi
lea ebx, [ebp - 0x7e8]
call fcn.3a9de20a
push edi
mov ecx, esi
call fcn.3a9de20a
imul eax, eax, 0x3c
add eax, dword [esi + 0x74]
mov esi, eax
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 0x7e8]
cmp eax, dword [ebp - 0xa0]
jg 0x3a9d9059
mov eax, dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x3a9d8f79
sub eax, edx
sar eax, 1
mov ebx, eax
lea eax, [ebx + ebx + 4]
push eax
call fcn.3a9de20a
mov edi, eax
add ebx, 2
push dword [esi]
push ebx
push edi
call fcn.3a9de20a
add esp, 0xc
push 0x3a9d43b0
push ebx
push edi
call fcn.3a9de20a
add esp, 0xc
push dword [esi]
call fcn.3a9de20a
mov dword [esi], edi
mov eax, dword [ebp - 0x7e8]
add dword [esi + 0x14], eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x7a4]
cmp dword [ebp - 0x7a8], eax
je 0x3a9d8fe2
push dword [ebp - 0x7a8]
call fcn.3a9de20a
cmp dword [ebp - 0x7f0], 0
jl 0x3a9d90a3
push dword [ebp - 0x7f0]
mov ebx, dword [ebp - 0x7b8]
mov ecx, ebx
call fcn.3a9de20a
mov edi, eax
mov dword [ebp - 0x7c4], edi
cmp edi, dword [ebp - 0x88]
jg 0x3a9d909a
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x7e0]
mov esi, dword [ebp - 0x7b4]
push esi
push dword [ebp - 0x7c8]
push dword [ebp - 0x7cc]
lea eax, [ebp - 0x42c]
push eax
push ebx
jmp 0x3a9d9196
cmp dword [ebp - 0x430], 0
je 0x3a9d9059
cmp dword [ebp - 0x430], 1
jne 0x3a9d8fc5
cmp dword [ebp - 0x7ac], 1
je 0x3a9d906b
cmp dword [ebp - 0x7ac], 2
jne 0x3a9d9071
mov dword [ebp - 0x7f0], edi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x7a4]
cmp dword [ebp - 0x7a8], eax
je 0x3a9d908e
push dword [ebp - 0x7a8]
call fcn.3a9de20a
dec edi
jns 0x3a9d8ee0
jmp 0x3a9d8fe2
test edi, edi
jl 0x3a9d90a3
lea esi, [edi - 1]
jmp 0x3a9d90b3
mov ebx, dword [ebp - 0x7b8]
mov esi, dword [ebx + 0x6c]
dec esi
mov edi, dword [ebp - 0x7c4]
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0xac]
push eax
add ebx, 0x60
call fcn.3a9de20a
mov eax, dword [ebp - 0x7c8]
mov dword [ebp - 0x7c4], eax
mov byte [ebp - 0x7ad], 1
and dword [ebp - 0xac], 0xfffffffd
mov ebx, dword [ebp - 0x7ec]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x7c8], ebx
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
inc esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x7c], eax
cmp edi, eax
jl 0x3a9d921b
xor ecx, ecx
mov esi, dword [ebp - 0x7b8]
mov eax, dword [esi + 0x6c]
cmp edi, eax
jge 0x3a9d9146
mov byte [ebp - 0x7ad], cl
mov edx, edi
imul edx, edx, 0x3c
sub eax, edi
mov edi, eax
mov eax, dword [esi + 0x74]
add eax, edx
test ecx, ecx
jne 0x3a9d913a
mov ecx, dword [eax + 0xc]
sub ecx, ebx
sub dword [eax + 0xc], ecx
sub dword [eax + 0x14], ecx
add edx, 0x3c
dec edi
jne 0x3a9d912c
mov eax, dword [ebp - 0x7c4]
sub eax, ecx
mov dword [ebp - 0x7c8], eax
jmp 0x3a9d921b
cmp dword [ebp - 0x7b4], edi
mov esi, dword [ebp - 0x7b4]
jl 0x3a9d9169
mov esi, edi
test esi, esi
jge 0x3a9d916f
xor esi, esi
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x7e0]
push esi
push dword [ebp - 0x7c8]
push dword [ebp - 0x7cc]
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x7b8]
mov ecx, dword [ebp - 0x7d4]
mov edx, dword [ebp - 0x7bc]
call fcn.3a9d9e93
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x7c0], eax
add dword [ebp - 0x7c8], esi
cmp eax, 5
je 0x3a9d91cc
cmp eax, 1
je 0x3a9d91cc
mov byte [ebp - 0x7cd], 0
jmp 0x3a9d9205
cmp byte [ebp - 0x7ad], 0
je 0x3a9d91de
cmp dword [ebp - 0x7e4], 0
jbe 0x3a9d91fe
lea eax, [ebp - 0x824]
push eax
push dword [ebp - 0x7b8]
xor ebx, ebx
call fcn.3a9de20a
mov eax, dword [ebp - 0x824]
add dword [ebp - 0x7c8], eax
mov byte [ebp - 0x7cd], 1
cmp dword [ebp - 0x7e4], 0
jbe 0x3a9d9215
mov byte [ebp - 0x7ad], 0
inc dword [ebp - 0x7bc]
mov eax, dword [ebp - 0x804]
cmp dword [ebp - 0x7bc], eax
jl 0x3a9d8902
cmp byte [ebp - 0x7ad], 0
jne 0x3a9d925c
and dword [ebp - 0xac], 0xffffffdf
mov eax, dword [ebp - 0x7b8]
mov ecx, dword [eax + 0x6c]
dec ecx
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0xac]
push ecx
lea ebx, [eax + 0x60]
call fcn.3a9de20a
mov esi, dword [ebp - 0x7b8]
mov eax, dword [ebp - 0x7dc]
mov edi, dword [eax + 4]
add edi, dword [ebp + 0x1c]
mov ebx, 0xffff0001
mov dword [ebp - 0x7bc], ebx
or dword [ebp - 0x7f4], 0xffffffff
mov byte [ebp - 0x7ad], 0
xor ecx, ecx
mov dword [ebp - 0x7d4], ecx
mov dword [ebp - 0x7e4], ecx
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x7ec], eax
mov dword [esi + 0x5c], ecx
cmp eax, ecx
jle 0x3a9d92bb
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx + 0x34]
cmp edx, ebx
je 0x3a9d92b7
cmp edx, 0xffff0002
jne 0x3a9d92bb
and dword [ecx + 0x34], 0
and dword [ebp - 0x7b4], 0
test eax, eax
jle 0x3a9d96ff
and dword [ebp - 0x7c0], 0
and dword [ebp - 0x7e0], 0
mov ebx, dword [esi + 0x68]
add ebx, dword [ebp - 0x7c0]
mov dword [ebx + 8], edi
cmp byte [ebp - 0x7ad], 0
je 0x3a9d9326
mov eax, dword [ebx + 0x34]
cmp eax, 0xffff0001
je 0x3a9d9326
cmp eax, 0xffff0002
je 0x3a9d9326
test byte [ebx], 2
je 0x3a9d9326
mov edx, dword [ebp - 0x7bc]
mov dword [ebx + 8], edx
mov eax, dword [ebp - 0x7b4]
dec eax
push eax
mov eax, dword [ebp - 0x7f4]
call fcn.3a9de20a
mov byte [ebp - 0x7ad], 0
cmp dword [ebx + 0x34], 0xffff
jne 0x3a9d9338
mov eax, dword [ebp - 0x7e4]
mov dword [ebx + 0x34], eax
xor ecx, ecx
cmp dword [ebx + 0x30], ecx
jle 0x3a9d93b8
mov eax, dword [ebp - 0x7e4]
mov dword [ebp - 0x7cc], eax
cmp eax, ecx
jne 0x3a9d93a8
mov eax, dword [ebp - 0x7b8]
cmp dword [eax + 0x6c], ecx
jle 0x3a9d93a8
mov edx, eax
mov ecx, dword [edx + 0x74]
mov eax, dword [ecx + 0x34]
cmp eax, 0xffffffff
jne 0x3a9d938b
xor eax, eax
push eax
push eax
lea edx, [ebp - 0x7cc]
push edx
push eax
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
xor edi, edi
mov eax, dword [ebp - 0x7b8]
call fcn.3a9de20a
jmp 0x3a9d93a8
imul eax, eax, 0x14
add eax, dword [edx + 0x8c]
mov eax, dword [eax]
imul eax, eax, 0x30
add eax, dword [0x3a9f81dc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7cc], eax
mov ecx, dword [ebx + 0x30]
imul ecx, dword [ebp - 0x7cc]
mov esi, dword [ebp - 0x7b8]
mov eax, dword [ebx + 0x34]
cmp eax, 0xffff0001
je 0x3a9d93e3
cmp eax, 0xffff0002
je 0x3a9d93e3
add eax, ecx
mov dword [ebx + 0x34], eax
js 0x3a9d93d8
cmp dword [ebp - 0x7d4], eax
jge 0x3a9d9437
sub eax, dword [ebp - 0x7d4]
add dword [ebx + 8], eax
jmp 0x3a9d9437
mov edx, dword [ebp - 0x7b4]
dec edx
js 0x3a9d940b
mov eax, dword [esi + 0x68]
mov edi, dword [ebp - 0x7c0]
lea eax, [edi + eax - 0x8c]
test byte [eax], 2
jne 0x3a9d940b
dec edx
sub eax, 0x8c
test edx, edx
jge 0x3a9d93fc
mov eax, edx
imul eax, eax, 0x8c
add eax, dword [esi + 0x68]
mov edi, dword [eax + 8]
sub edi, dword [eax + 0x3c]
add edi, ecx
mov dword [ebx + 8], edi
cmp byte [ebp - 0x7ad], 0
jne 0x3a9d944a
mov byte [ebp - 0x7ad], 1
mov dword [ebp - 0x7f4], edx
cmp byte [ebp - 0x7ad], 0
jne 0x3a9d944a
mov dword [ebp - 0x7bc], 0xffff0001
mov eax, dword [ebx + 0x3c]
add dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
test byte [ebx], 1
je 0x3a9d9476
mov eax, dword [ebx + 0x54]
add ecx, eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x74], eax
and dword [ebx + 0x78], 0
mov dword [ebx + 0x80], ecx
and dword [ebp - 0x7e4], 0
jmp 0x3a9d9489
push dword [ebp - 0x7b4]
mov eax, esi
call fcn.3a9de20a
mov dword [ebp - 0x7e4], eax
mov edx, dword [ebx + 0x70]
cmp edx, 0xffff0001
je 0x3a9d9525
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
sub ecx, eax
test byte [ebx], 0x10
je 0x3a9d94b5
mov eax, ecx
sub eax, dword [ebx + 0x7c]
imul eax, edx
cdq
push 0x64
pop edi
idiv edi
jmp 0x3a9d94b7
mov eax, edx
cmp eax, ecx
jle 0x3a9d9509
sub eax, ecx
mov dword [ebp - 0x7c4], eax
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x78]
mov ecx, edx
sub ecx, edi
sub ecx, dword [ebx + 0x80]
add edi, eax
mov dword [ebp - 0x804], edi
mov dword [ebx + 0x78], edi
mov edi, dword [ebp - 0x7c4]
sub edi, eax
add dword [ebx + 0x74], edi
mov eax, dword [ebp - 0x7c4]
add eax, edx
mov dword [ebx + 0x10], eax
sub eax, dword [ebp - 0x804]
sub eax, ecx
mov dword [ebx + 0x80], eax
jmp 0x3a9d9525
sub eax, ecx
mov ecx, eax
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebx + 8]
add edx, eax
mov dword [ebx + 8], edx
add dword [ebx + 0x10], eax
sub ecx, eax
mov dword [ebp - 0x7e0], ecx
cmp dword [ebx + 0x34], 0xffff0001
jne 0x3a9d964f
and dword [ebp - 0x7cc], 0
and dword [ebp - 0x7f0], 0
mov edx, dword [ebp - 0x7b4]
mov dword [ebp - 0x7c4], edx
test edx, edx
jl 0x3a9d964f
mov eax, dword [esi + 0x68]
add eax, dword [ebp - 0x7c0]
test byte [eax], 2
je 0x3a9d958d
mov ecx, dword [eax + 0x74]
cmp ecx, dword [ebp - 0x7cc]
jle 0x3a9d9573
mov dword [ebp - 0x7cc], ecx
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 0x7f0]
jle 0x3a9d9584
mov dword [ebp - 0x7f0], ecx
cmp dword [eax + 0x34], 0xffff0001
jne 0x3a9d959d
dec edx
mov dword [ebp - 0x7c4], edx
sub eax, 0x8c
test edx, edx
jge 0x3a9d955d
test edx, edx
jl 0x3a9d964f
mov dword [ebp - 0x7d4], edx
cmp edx, dword [ebp - 0x7b4]
jg 0x3a9d964f
imul edx, edx, 0x8c
mov dword [ebp - 0x7e8], edx
mov eax, dword [esi + 0x68]
add eax, edx
xor cl, cl
test byte [eax], 2
je 0x3a9d9625
mov edx, dword [eax + 0x74]
mov edi, dword [ebp - 0x7cc]
cmp edx, edi
jge 0x3a9d95ee
mov ecx, edi
sub ecx, edx
mov dword [eax + 0x74], edi
add dword [eax + 0x10], ecx
add dword [eax + 0x80], ecx
mov cl, 1
mov edx, dword [eax + 0x78]
mov edi, dword [ebp - 0x7f0]
cmp edx, edi
jge 0x3a9d9607
mov ecx, edi
sub ecx, edx
mov dword [eax + 0x78], edi
add dword [eax + 0x10], ecx
mov cl, 1
test cl, cl
je 0x3a9d9625
mov eax, dword [ebp - 0x7d4]
cmp eax, dword [ebp - 0x7b4]
jge 0x3a9d9625
push esi
mov eax, dword [ebp - 0x7c4]
call fcn.3a9de20a
inc dword [ebp - 0x7d4]
mov edx, dword [ebp - 0x7e8]
add edx, 0x8c
mov dword [ebp - 0x7e8], edx
mov eax, dword [ebp - 0x7d4]
cmp eax, dword [ebp - 0x7b4]
jle 0x3a9d95c3
push esi
mov eax, dword [ebp - 0x7b4]
call fcn.3a9de20a
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0x3c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x5c]
add eax, dword [ebx + 0x58]
cmp eax, dword [esi + 0x5c]
jle 0x3a9d967b
mov dword [esi + 0x5c], eax
and dword [ebp - 0x7d4], 0
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 0x7e0]
mov ebx, dword [ebx + 0x38]
test ebx, ebx
jle 0x3a9d969a
mov dword [ebp - 0x7d4], ebx
add edi, ebx
cmp edi, dword [ebp - 0x7bc]
jle 0x3a9d96a8
mov dword [ebp - 0x7bc], edi
inc dword [ebp - 0x7b4]
add dword [ebp - 0x7c0], 0x8c
mov eax, dword [ebp - 0x7ec]
cmp dword [ebp - 0x7b4], eax
jl 0x3a9d92d1
cmp byte [ebp - 0x7ad], 0
je 0x3a9d96ec
dec eax
push eax
mov edx, dword [ebp - 0x7bc]
mov eax, dword [ebp - 0x7f4]
call fcn.3a9de20a
mov eax, dword [ebp - 0x7ec]
test eax, eax
jle 0x3a9d96ff
imul eax, eax, 0x8c
mov ecx, dword [esi + 0x68]
mov eax, dword [eax + ecx - 0x6c]
jmp 0x3a9d9701
mov eax, edi
mov dword [esi + 0x58], eax
cmp byte [ebp + 0x20], 0
sete al
movzx eax, al
push eax
mov eax, dword [ebp - 0x7dc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp + 0x1c]
push eax
call fcn.3a9de20a
test al, al
je 0x3a9d9731
cmp byte [ebp + 0x20], 0
je 0x3a9d9731
push esi
call fcn.3a9dacc4
xor ebx, ebx
mov dword [ebp - 0x800], ebx
mov dword [ebp - 0x7fc], ebx
mov dword [ebp - 0x7f8], ebx
mov byte [ebp - 4], 2
or dword [ebp - 0x7bc], 0xffffffff
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x804], eax
mov dword [ebp - 0x7c0], ebx
mov eax, dword [ebp - 0x7c0]
cmp eax, dword [ebp - 0x804]
jge 0x3a9d99de
imul eax, eax, 0x3c
add eax, dword [esi + 0x74]
mov dword [ebp - 0x7dc], eax
mov ecx, dword [ebp - 0x7bc]
cmp dword [eax + 8], ecx
je 0x3a9d98ae
cmp ecx, 0xffffffff
je 0x3a9d97f9
mov eax, dword [ebp - 0x7c0]
dec eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov edi, ebx
shl edi, 4
push edi
call fcn.3a9de20a
mov dword [ebp - 0x94], eax
push edi
push dword [ebp - 0x7f8]
push eax
call fcn.3a9de20a
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
push eax
lea ebx, [esi + 0x78]
call fcn.3a9de20a
mov dword [ebp - 4], 2
or dword [ebp - 0x7bc], 0xffffffff
and dword [ebp - 0x800], 0
mov eax, dword [ebp - 0x7dc]
mov ebx, dword [ebp - 0x800]
mov ecx, dword [eax + 8]
cmp ecx, 0xffffffff
je 0x3a9d98ae
lea esi, [ebp - 0x840]
mov eax, dword [ebp - 0x808]
call fcn.3a9de20a
lea ecx, [ebp - 0x42c]
push ecx
mov ebx, eax
call fcn.3a9de20a
mov eax, dword [ebp - 0x7dc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x7bc], eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x7c0]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x428]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x3a9d9857
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.3a9de20a
mov dword [ebp - 0x28], eax
push dword [ebp - 0x428]
push esi
push eax
call fcn.3a9de20a
add esp, 0xc
push 0x19
pop ecx
lea esi, [ebp - 0x224]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x7dc]
mov ebx, dword [ebp - 0x800]
cmp dword [ebp - 0x7bc], 0xffffffff
je 0x3a9d99cd
lea ecx, [ebx - 1]
lea esi, [eax + 0xc]
lea edi, [ebp - 0x818]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec dword [ebp - 0x818]
test ecx, ecx
jl 0x3a9d995b
shl ecx, 4
add ecx, dword [ebp - 0x7f8]
mov eax, dword [ecx + 4]
lea edx, [eax - 1]
cmp dword [ebp - 0x814], edx
jne 0x3a9d9909
mov dword [ecx + 4], edx
jmp 0x3a9d9918
inc eax
cmp dword [ebp - 0x814], eax
jne 0x3a9d9918
dec dword [ebp - 0x814]
mov eax, dword [ecx + 0xc]
lea edx, [eax - 1]
cmp dword [ebp - 0x80c], edx
jne 0x3a9d992e
inc dword [ebp - 0x80c]
jmp 0x3a9d993a
inc eax
cmp dword [ebp - 0x80c], eax
jne 0x3a9d993a
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x814]
cmp eax, dword [ecx + 4]
jne 0x3a9d995b
mov eax, dword [ebp - 0x80c]
cmp eax, dword [ecx + 0xc]
jne 0x3a9d995b
mov eax, dword [ebp - 0x810]
mov dword [ecx + 8], eax
jmp 0x3a9d99cd
lea eax, [ebx + 1]
mov dword [ebp - 0x7c4], eax
cmp eax, dword [ebp - 0x7fc]
jle 0x3a9d99aa
mov esi, dword [ebp - 0x7fc]
add esi, 0x10
mov eax, esi
shl eax, 4
push eax
cmp dword [ebp - 0x7f8], 0
jne 0x3a9d998b
call fcn.3a9de20a
jmp 0x3a9d9996
push dword [ebp - 0x7f8]
call fcn.3a9de20a
mov dword [ebp - 0x7f8], eax
mov dword [ebp - 0x7fc], esi
cmp dword [ebp - 0x7c4], esi
jg 0x3a9d996c
mov edi, ebx
shl edi, 4
add edi, dword [ebp - 0x7f8]
lea esi, [ebp - 0x818]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x7c4]
mov dword [ebp - 0x800], eax
mov ebx, eax
inc dword [ebp - 0x7c0]
mov esi, dword [ebp - 0x7b8]
jmp 0x3a9d975f
cmp dword [ebp - 0x7bc], 0xffffffff
je 0x3a9d9a3b
mov eax, dword [ebp - 0x7c0]
dec eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov esi, ebx
shl esi, 4
push esi
call fcn.3a9de20a
mov dword [ebp - 0x94], eax
push esi
push dword [ebp - 0x7f8]
push eax
call fcn.3a9de20a
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [ebp - 0xa4]
push eax
mov ebx, dword [ebp - 0x7b8]
add ebx, 0x78
call fcn.3a9de20a
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x7b8]
mov eax, dword [eax + 0x78]
test eax, eax
jle 0x3a9d9b59
and dword [ebp - 0x7cc], 0
mov dword [ebp - 0x7e8], eax
mov eax, dword [ebp - 0x7b8]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x7cc]
xor edx, edx
mov dword [ebp - 0x7b4], edx
xor edi, edi
mov dword [ebp - 0x7dc], edi
xor esi, esi
cmp dword [eax + 0xc], edx
jle 0x3a9d9b46
mov ecx, dword [eax + 0x10]
add ecx, edx
cmp dword [ecx + 4], edi
jl 0x3a9d9adc
cmp dword [ebp - 0x7b4], esi
jge 0x3a9d9ac7
mov ecx, dword [ebp - 0x7b4]
shl ecx, 4
mov edi, esi
sub edi, dword [ebp - 0x7b4]
mov dword [ebp - 0x7c4], edi
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x7dc]
mov dword [ecx + edi + 0xc], ebx
add ecx, 0x10
dec dword [ebp - 0x7c4]
jne 0x3a9d9aaf
mov ecx, dword [eax + 0x10]
mov edi, dword [edx + ecx + 0xc]
mov dword [ebp - 0x7dc], edi
mov dword [ebp - 0x7b4], esi
jmp 0x3a9d9b15
mov ecx, dword [ecx + 0xc]
cmp ecx, edi
jle 0x3a9d9aeb
mov edi, ecx
mov dword [ebp - 0x7dc], edi
cmp esi, dword [ebp - 0x7b4]
jle 0x3a9d9b15
mov ecx, dword [eax + 0x10]
add ecx, edx
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx - 0xc]
mov ecx, dword [eax + 0x10]
jle 0x3a9d9b0d
add ecx, edx
mov ebx, dword [ecx]
inc ebx
mov dword [ecx - 8], ebx
jmp 0x3a9d9b15
add ecx, edx
mov ebx, dword [ecx - 8]
dec ebx
mov dword [ecx], ebx
inc esi
add edx, 0x10
cmp esi, dword [eax + 0xc]
jl 0x3a9d9a86
cmp dword [ebp - 0x7b4], esi
jge 0x3a9d9b46
mov ecx, dword [ebp - 0x7b4]
shl ecx, 4
sub esi, dword [ebp - 0x7b4]
mov edx, dword [eax + 0x10]
mov dword [ecx + edx + 0xc], edi
add ecx, 0x10
dec esi
jne 0x3a9d9b39
sub dword [ebp - 0x7cc], 0xffffff80
dec dword [ebp - 0x7e8]
jne 0x3a9d9a59
mov byte [ebp - 4], 0
push dword [ebp - 0x7f8]
call fcn.3a9de20a
cmp dword [ebp - 0x81c], 0
je 0x3a9d9b83
push dword [ebp - 0x81c]
push dword [ebp - 0x7d8]
call dword [sym.imp.GDI32.dll_SelectObject]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x424]
cmp dword [ebp - 0x428], eax
je 0x3a9d9ba0
push dword [ebp - 0x428]
call fcn.3a9de20a
mov al, 1
call fcn.3a9f241a
ret 0x1c