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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x68]
mov edx, dword [eax + 0xe89c]
test edx, edx
je 0x43d523
cmp dword [edi + 0x64], edx
jne 0x43d528
cmp dword [edi + 0x64], edx
je 0x43d535
call fcn.0043d0a0
test eax, eax
je 0x43dd12
lea eax, [edi + 0x48]
push eax
mov dword [esp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [edi + 0x2c]
xor ecx, ecx
shr eax, 3
mov esi, dword [edi + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
movups xmm1, xmmword [eax]
movd eax, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
test eax, eax
cmovs eax, ecx
xor edx, edx
div esi
mov dword [esp + 0x20], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
test eax, eax
cmovs eax, ecx
xor edx, edx
div esi
mov dword [esp + 0x14], eax
movd eax, xmm0
test eax, eax
cmovs eax, ecx
xor edx, edx
div esi
xor edx, edx
mov ecx, eax
movd eax, xmm1
mov dword [esp + 0x1c], ecx
test eax, eax
cmovs eax, edx
div esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
cmp eax, 4
jae 0x43d5de
mov edx, dword [esp + 0x20]
cmp eax, 1
jne 0x43d5d3
mov ecx, edx
and ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x1c]
jmp 0x43d5da
mov eax, edx
and eax, 1
sub edx, eax
mov dword [esp + 0x20], edx
cmp esi, 1
jne 0x43d5f4
cmp byte [edi + 0x74], 0
jne 0x43d5f4
cmp dword [edi + 0x70], 0
jne 0x43d5f4
mov edx, dword [edi + 0x64]
jmp 0x43d5f7
mov edx, dword [edi + 0x18]
mov eax, ecx
mov byte [esp + 0xf], 0
sub eax, dword [esp + 0x20]
cmp eax, 0x10
jge 0x43d616
mov dword [esp + 0x18], 8
mov byte [esp + 0xf], 1
jmp 0x43d62a
cmp eax, 0x20
mov esi, 0x40
mov ecx, 0x10
cmovl esi, ecx
mov dword [esp + 0x18], esi
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x20]
imul ecx, dword [esp + 0x14]
imul eax, dword [esp + 0x48]
add ecx, eax
cmp dword [edi + 8], 0
je 0x43da2b
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x894], 0
jne 0x43da2b
mov eax, dword [edi + 0x60]
test eax, eax
je 0x43da2b
mov esi, dword [edi + 0x40]
add eax, ecx
add esi, ecx
mov dword [esp + 0x60], eax
add ecx, edx
mov dword [esp + 0x6c], esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
cmp edx, dword [esp + 0x28]
jge 0x43dd08
nop word [eax + eax]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
cmovl eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov edx, eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x1c]
jge 0x43d9e3
mov eax, dword [esp + 0x18]
nop dword [eax + eax]
mov edi, dword [edi + 0x1c]
add eax, edx
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x38], edi
cmovl eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
sub eax, edx
imul eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], esi
mov byte [esp + 0xe], 1
mov dword [esp + 0x58], eax
div edi
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x24]
jae 0x43d9ab
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
imul eax, edx
add ecx, eax
lea edx, [eax + esi]
mov esi, dword [esp + 0x4c]
sub esi, 4
jb 0x43d761
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43d766
add ecx, 4
add edx, 4
sub esi, 4
jae 0x43d750
cmp esi, 0xfffffffc
je 0x43d793
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x43d7d5
cmp esi, 0xfffffffd
je 0x43d793
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x43d7d5
cmp esi, 0xfffffffe
je 0x43d793
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x43d7d5
cmp esi, 0xffffffff
je 0x43d793
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x43d7d5
mov edx, dword [esp + 0x10]
inc edi
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x68], edi
mov eax, dword [edx + 0x20]
add ecx, dword [edx + 4]
inc eax
add esi, dword [edx + 4]
cdq
idiv dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], esi
mov dword [eax + 0x20], edx
cmp edi, dword [esp + 0x24]
jae 0x43d9ab
mov edx, dword [esp + 0x4c]
jmp 0x43d738
cmp byte [esp + 0xf], 0
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x14]
je 0x43d836
mov eax, edi
mov ecx, edx
sub eax, dword [esp + 0x14]
imul eax, dword [esi + 4]
mov esi, dword [esp + 0x40]
imul ecx, edi
add esi, eax
add eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], esi
mov esi, edx
imul esi, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, edx
imul eax, dword [esp + 0x64]
imul edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
cmp edi, dword [esp + 0x24]
jb 0x43d86a
mov dword [esp + 0x38], ecx
jmp 0x43d93b
mov ecx, dword [esp + 0x44]
mov eax, edx
imul eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, edx
imul ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x64]
imul ecx, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x24]
imul ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
jmp 0x43d86e
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
sub edi, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
cmp byte [esp + 0xe], 0
je 0x43d8ec
mov eax, dword [esp + 0x34]
mov edx, ecx
sub esi, 4
jb 0x43d8a3
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x43d8a8
add edx, 4
add eax, 4
sub esi, 4
jae 0x43d892
cmp esi, 0xfffffffc
je 0x43d8dc
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x43d8d5
cmp esi, 0xfffffffd
je 0x43d8dc
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x43d8d5
cmp esi, 0xfffffffe
je 0x43d8dc
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x43d8d5
cmp esi, 0xffffffff
je 0x43d8dc
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x43d8dc
mov byte [esp + 0xe], 0
jmp 0x43d8e4
mov al, byte [esp + 0xe]
mov byte [esp + 0xe], al
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
push esi
push dword [esp + 0x34]
push edx
call fcn.005264b0
push esi
push dword [esp + 0x3c]
push dword [esp + 0x44]
call fcn.005264b0
mov eax, dword [esp + 0x28]
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 4]
add ecx, eax
add dword [esp + 0x30], eax
add edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
sub edi, 1
jne 0x43d880
cmp byte [esp + 0xe], 0
je 0x43d964
mov esi, dword [esp + 0x54]
push 0x579be0
call fcn.00535058
add esp, 4
mov edi, eax
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x40]
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
mov eax, dword [ebp + 0xc]
jmp 0x43d98e
push 0x579be0
call fcn.00535058
add esp, 4
mov edi, eax
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x40]
push dword [esp + 0x60]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 2
push esi
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.0052a52b
add esp, 4
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add esi, eax
add dword [esp + 0x5c], eax
add ecx, eax
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
add edx, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
cmp edx, dword [esp + 0x1c]
jl 0x43d6d0
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
add edx, dword [esp + 0x18]
add dword [esp + 0x60], eax
add esi, eax
add ecx, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x28]
jl 0x43d690
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [edi + 0x40]
mov eax, dword [esp + 0x28]
add esi, ecx
add ecx, edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x14], eax
jge 0x43dd08
nop dword [eax + eax]
mov eax, dword [esp + 0x20]
mov edx, esi
mov esi, dword [esp + 0x18]
mov edi, ecx
add esi, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
mov dword [esp + 0x3c], edx
cmovl esi, dword [esp + 0x28]
mov dword [esp + 0x24], esi
mov esi, eax
cmp esi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], eax
jge 0x43dccd
mov ecx, dword [esp + 0x18]
nop dword [eax]
add ecx, eax
mov dword [esp + 0x60], edi
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x5c], edx
cmovl ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
sub ecx, eax
imul ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], edx
xor edx, edx
mov dword [esp + 0x44], edi
mov edi, dword [eax + 0x1c]
mov eax, ecx
div edi
mov dword [esp + 0x70], edi
mov edx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], eax
cmp eax, esi
jae 0x43dc94
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
nop
mov eax, dword [eax + 0x20]
imul eax, edx
cmp byte [ebp + 0x14], 0
jne 0x43dbac
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add edx, eax
mov esi, dword [esp + 0x6c]
add ecx, eax
sub esi, 4
jb 0x43db26
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43db2b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x43db15
cmp esi, 0xfffffffc
je 0x43db58
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x43dba8
cmp esi, 0xfffffffd
je 0x43db58
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x43dba8
cmp esi, 0xfffffffe
je 0x43db58
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x43dba8
cmp esi, 0xffffffff
je 0x43db58
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x43dba8
mov esi, dword [esp + 0x24]
lea eax, [esi - 1]
cmp edi, eax
je 0x43db86
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
add dword [esp + 0x60], eax
add dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [esp + 0x58]
inc eax
cdq
idiv ecx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], edx
jmp 0x43db8e
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
inc edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x68], edi
cmp edi, esi
jb 0x43daf0
jmp 0x43dc90
mov esi, dword [esp + 0x24]
cmp byte [esp + 0xf], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x14]
mov eax, ecx
je 0x43dbe1
imul eax, edi
mov dword [esp + 0x70], eax
mov eax, edi
sub eax, dword [esp + 0x14]
imul eax, dword [edx + 4]
mov edx, dword [esp + 0x38]
add edx, eax
add eax, dword [esp + 0x3c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x64], eax
jmp 0x43dbea
imul eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
imul eax, ecx
push 0x579be0
imul esi, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x58]
imul eax, ecx
mov dword [esp + 0x58], eax
call fcn.00535058
add esp, 4
mov edi, eax
push esi
push dword [esp + 0x58]
push dword [esp + 0x78]
push dword [esp + 0x78]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
mov eax, dword [ebp + 8]
push 2
push esi
mov ecx, dword [eax]
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.0052a52b
mov eax, dword [esp + 0x18]
add esp, 4
cmp byte [esp + 0xf], 0
mov esi, dword [esp + 0x24]
cmovne eax, dword [esp + 0x68]
cmp eax, esi
jae 0x43dc90
mov edi, dword [esp + 0x64]
sub esi, eax
mov ecx, dword [esp + 0x44]
push dword [esp + 0x40]
push ecx
push edi
call fcn.005264b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x44]
add ecx, dword [eax + 4]
add edi, dword [eax + 4]
mov dword [esp + 0x44], ecx
sub esi, 1
jne 0x43dc67
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
dec edx
mov edi, dword [esp + 0x38]
cmp eax, edx
mov edx, dword [esp + 0x3c]
je 0x43dcb5
add edx, ecx
add edi, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x1c]
jl 0x43da90
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x4c]
lea eax, [edi - 1]
cmp edx, eax
je 0x43dcf8
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
imul eax, dword [esp + 0x18]
add esi, eax
add ecx, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], ecx
add edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp edx, edi
jl 0x43da50
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10