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

Disassembly:
push 0xffffffffffffffff
push 0x49a8f2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
lea eax, [esp + 0x78]
push eax
call fcn.00422bc0
xor eax, eax
mov dword [esp + 0x98], eax
push 1
push 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push ecx
mov eax, ebp
call fcn.00409740
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edx, eax
sub edx, ecx
test edx, 0xfffffff0
jne 0x4126bb
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x9c], 0xffffffff
call fcn.00422dd0
jmp 0x412b12
mov esi, ecx
cmp ecx, eax
jbe 0x4126d4
call fcn.0047d091
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov ebx, eax
cmp ecx, eax
jbe 0x4126eb
call fcn.0047d091
test edi, edi
je 0x4126f5
cmp edi, dword [esp + 0x78]
je 0x4126fa
call fcn.0047d091
cmp esi, ebx
je 0x412929
test edi, edi
jne 0x41291e
call fcn.0047d091
cmp esi, dword [edi + 0x10]
jb 0x412719
call fcn.0047d091
mov eax, dword [esi + 8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x70], eax
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, ebx
push 0x4a3fbe
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
call fcn.0047d6d1
mov ecx, dword [esp + 0x74]
add esp, 4
push esi
push ecx
push ebx
push edi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
lea edx, [esp + 0x30]
push edx
push ebp
lea esi, [esp + 0x40]
mov dword [esp + 0x38], eax
call fcn.004096d0
push 0
push 0
push 0
mov esi, eax
mov eax, dword [ebp]
push 0
push eax
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [esi]
mov ecx, dword [ebp]
push 5
push eax
push eax
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call fcn.0047d643
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call fcn.0047d643
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x54]
mov esi, dword [eax + 0xac]
mov edx, dword [eax + 0xb4]
mov ecx, dword [eax + 0xa8]
mov eax, dword [eax + 0xb0]
add esp, 4
sub edx, esi
sub eax, ecx
cmp edi, ecx
mov dword [esp + 0x24], esi
jge 0x4127fa
sub edi, ecx
add dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
cmp ebx, esi
jge 0x412808
sub ebx, esi
add dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea edi, [ecx + eax]
add ebx, esi
cmp ebx, edi
jle 0x412821
sub ecx, esi
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
lea esi, [ecx + edx]
lea edi, [ebx + eax]
cmp edi, esi
jle 0x412841
sub ecx, eax
add ecx, edx
mov dword [esp + 0x14], ecx
mov ebx, ecx
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x4128e1
test ebx, ebx
jle 0x4128e1
mov ecx, dword [esp + 0x1c]
push 0x4a3fbe
add esi, ecx
add ebx, eax
call fcn.0047d6d1
mov edx, dword [esp + 0x24]
add esp, 4
push ebx
push esi
mov edi, eax
mov eax, dword [esp + 0x24]
push edx
push eax
mov dword [esp + 0x54], edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
lea ecx, [esp + 0x40]
push ecx
mov ebx, eax
push ebp
lea esi, [esp + 0x50]
mov dword [esp + 0x48], ebx
call fcn.00409680
mov edx, dword [ebp]
push 0
push 0
push 0
push 0
push edx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [esi]
push 5
push eax
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [esp + 0x48]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x4c]
push edx
call fcn.0047d643
add esp, 4
push ebx
call esi
push edi
call fcn.0047d643
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x412925
call fcn.0047d091
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x10]
jb 0x4128fe
call fcn.0047d091
add dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x4126e0
mov edi, dword [edi]
jmp 0x41270f
mov eax, dword [eax]
jmp 0x4128f0
push 1
push 1
lea edx, [esp + 0x80]
push edx
mov eax, ebp
call fcn.00409740
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov ecx, eax
sub ecx, ebx
test ecx, 0xfffffff0
jne 0x412970
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x9c], 0xffffffff
call fcn.00422dd0
jmp 0x412b12
cmp ebx, eax
jbe 0x412979
call fcn.0047d091
mov esi, dword [esp + 0x78]
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x84], edi
jbe 0x41299a
call fcn.0047d091
xor ebp, ebp
cmp esi, ebp
je 0x4129a6
cmp esi, dword [esp + 0x78]
je 0x4129ab
call fcn.0047d091
cmp ebx, edi
je 0x412a92
cmp esi, ebp
jne 0x412a39
call fcn.0047d091
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4129cc
call fcn.0047d091
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov ebp, dword [ebx]
mov edi, dword [ebx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
cmp esi, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
jle 0x412a3d
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x58], ecx
jge 0x412a23
cmp dword [esp + 0x5c], eax
jge 0x412a23
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push edx
push eax
mov eax, dword [esp + 0xa8]
lea ebx, [esp + 0x60]
call fcn.00413380
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ecx
jmp 0x412a69
mov eax, dword [esi]
jmp 0x4129c2
lea edx, [esp + 0x58]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x48]
call fcn.00411850
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x412a8e
call fcn.0047d091
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x412a82
call fcn.0047d091
mov esi, dword [esp + 0x28]
add ebx, 0x10
jmp 0x412981
mov eax, dword [eax]
jmp 0x412a78
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x58], ecx
jge 0x412ac6
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x5c], edx
jge 0x412ac6
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa4]
push ecx
lea ebx, [esp + 0x60]
call fcn.00413380
mov dword [esp + 0x98], 1
mov eax, dword [esp + 0x84]
cmp eax, ebp
je 0x412ae5
push eax
call fcn.0047c43d
add esp, 4
mov dword [esp + 0x98], 0xffffffff
mov edx, dword [esp + 0x78]
push edx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
call fcn.0047c43d
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x10