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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x68]
lea esi, [edi + 0x64]
mov eax, dword [eax + 0xe0bc]
test eax, eax
je 0x432fd5
cmp dword [esi], eax
jne 0x432fd9
cmp dword [esi], eax
je 0x432fe6
call fcn.00432b20
test eax, eax
je 0x433791
lea eax, [edi + 0x48]
push eax
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [edi + 0x2c]
xor ecx, ecx
shr eax, 3
mov edi, dword [edi + 0x14]
mov dword [esp + 0x40], 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 edi
mov dword [esp + 0x1c], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
test eax, eax
cmovs eax, ecx
xor edx, edx
div edi
mov dword [esp + 0x14], eax
movd eax, xmm0
test eax, eax
cmovs eax, ecx
xor edx, edx
div edi
xor edx, edx
mov ecx, eax
movd eax, xmm1
mov dword [esp + 0x18], ecx
test eax, eax
cmovs eax, edx
div edi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
cmp eax, 4
jae 0x433092
cmp eax, 1
jne 0x433087
mov ecx, edx
and ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x43308e
mov eax, edx
and eax, 1
sub edx, eax
mov dword [esp + 0x1c], edx
cmp edi, 1
mov edi, dword [esp + 0x10]
jne 0x4330ab
cmp byte [edi + 0x74], 0
jne 0x4330ab
cmp dword [edi + 0x70], 0
jne 0x4330ab
mov esi, dword [esi]
jmp 0x4330ae
mov esi, dword [edi + 0x18]
mov eax, ecx
mov byte [esp + 0xf], 0
sub eax, edx
cmp eax, 0x10
jge 0x4330cb
mov dword [esp + 0x24], 8
mov byte [esp + 0xf], 1
jmp 0x4330df
cmp eax, 0x20
mov ecx, 0x40
mov edx, 0x10
cmovl ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 4]
mov edx, ecx
mov eax, dword [esp + 0x1c]
imul edx, dword [esp + 0x14]
imul eax, dword [esp + 0x40]
add edx, eax
cmp dword [edi + 8], 0
je 0x433492
mov eax, dword [edi + 0x68]
cmp byte [eax + 0xb8], 0
jne 0x433492
mov eax, dword [edi + 0x60]
test eax, eax
je 0x433492
mov edi, dword [edi + 0x40]
add eax, edx
add edi, edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
add esi, edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x58], esi
cmp dword [esp + 0x14], eax
jge 0x433787
nop dword [eax]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
mov edi, esi
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x24]
cmp dword [esp + 0x20], esi
mov dword [esp + 0x50], eax
mov eax, esi
cmovl eax, dword [esp + 0x20]
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov eax, edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x78], esi
jge 0x433453
mov esi, dword [esp + 0x24]
add esi, eax
mov dword [esp + 0x44], edx
cmp dword [esp + 0x18], esi
mov edx, esi
mov dword [esp + 0x74], esi
cmovl edx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x70], edx
sub edx, eax
imul edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov esi, dword [esi + 0x1c]
mov byte [esp + 0xe], 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0x4c], edx
mov eax, edx
xor edx, edx
div esi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jae 0x43341a
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x5c], eax
mov esi, dword [esp + 0x68]
imul eax, esi
lea edx, [eax + ecx]
lea ecx, [eax + edi]
sub esi, 4
jb 0x433223
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x433228
add ecx, 4
add edx, 4
sub esi, 4
jae 0x433212
cmp esi, 0xfffffffc
je 0x433255
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x433292
cmp esi, 0xfffffffd
je 0x433255
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x433292
cmp esi, 0xfffffffe
je 0x433255
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x433292
cmp esi, 0xffffffff
je 0x433255
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x433292
mov eax, dword [esp + 0x5c]
inc eax
mov esi, dword [esp + 0x10]
cdq
idiv dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
add ecx, dword [esi + 4]
mov eax, edx
add edi, dword [esi + 4]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x44], ecx
mov dword [esi + 0x20], eax
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x48]
jb 0x433200
jmp 0x43341e
cmp byte [esp + 0xf], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov esi, dword [ecx + 0x14]
je 0x4332c4
mov eax, edx
sub eax, dword [esp + 0x14]
imul eax, dword [ecx + 4]
mov ecx, dword [esp + 0x3c]
add ecx, eax
add eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, edx
mov dword [esp + 0x2c], ecx
jmp 0x4332c8
mov eax, dword [esp + 0x14]
mov ecx, esi
imul ecx, eax
mov eax, esi
imul eax, dword [esp + 0x60]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, esi
imul eax, dword [esp + 0x70]
imul esi, ecx
cmp byte [esp + 0xf], 0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
cmovne eax, edx
mov dword [esp + 0x44], esi
cmp eax, ecx
jae 0x4333cc
mov esi, dword [esp + 0x4c]
mov edi, ecx
mov ecx, dword [esp + 0x2c]
sub edi, eax
mov edx, dword [esp + 0x28]
cmp byte [esp + 0xe], 0
je 0x433382
mov eax, dword [esp + 0x38]
mov edx, ecx
sub esi, 4
jb 0x433339
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x43333e
add edx, 4
add eax, 4
sub esi, 4
jae 0x433328
cmp esi, 0xfffffffc
je 0x433372
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x43336b
cmp esi, 0xfffffffd
je 0x433372
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x43336b
cmp esi, 0xfffffffe
je 0x433372
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x43336b
cmp esi, 0xffffffff
je 0x433372
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x433372
mov byte [esp + 0xe], 0
jmp 0x43337a
mov al, byte [esp + 0xe]
mov byte [esp + 0xe], al
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
push esi
push edx
push dword [esp + 0x40]
call fcn.004cd830
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push esi
push ecx
push eax
call fcn.004cd830
mov eax, dword [esp + 0x28]
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 4]
add ecx, eax
add dword [esp + 0x38], eax
add edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
sub edi, 1
jne 0x433316
mov esi, dword [esp + 0x44]
push 0x518188
call fcn.004dad37
add esp, 4
mov edi, eax
push esi
push dword [esp + 0x60]
push dword [esp + 0x3c]
push dword [esp + 0x6c]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp byte [esp + 0xe], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
push 2
push esi
jne 0x433400
mov eax, dword [ebp + 8]
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.004dab64
add esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
add edx, eax
add dword [esp + 0x50], eax
add edi, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x18]
jl 0x433185
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x64]
mov eax, ecx
imul eax, dword [esp + 0x24]
add dword [esp + 0x58], eax
add edi, eax
add dword [esp + 0x54], eax
mov eax, esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x64], edi
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x20]
jl 0x433140
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi + 0x40]
lea ecx, [edx + esi]
mov eax, dword [esp + 0x20]
add edi, edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x14], eax
jge 0x433787
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
mov esi, ecx
cmp dword [esp + 0x20], eax
mov ecx, eax
mov edx, edi
mov dword [esp + 0x6c], eax
cmovl ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], esi
jge 0x43374e
mov edi, dword [esp + 0x18]
dec edi
mov dword [esp + 0x34], edi
nop dword [eax + eax]
mov edi, dword [esp + 0x24]
add edi, eax
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x18]
cmp esi, edi
mov dword [esp + 0x28], edi
cmovl edi, esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], edi
sub edi, eax
imul edi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
xor edx, edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x64], eax
mov eax, edi
div dword [esp + 0x64]
mov esi, dword [esp + 0x3c]
mov edx, eax
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
cmp eax, ecx
jae 0x43370a
mov eax, dword [esp + 0x10]
nop dword [eax]
mov eax, dword [eax + 0x20]
imul eax, edx
mov edx, dword [esp + 0x58]
add edx, eax
lea ecx, [eax + esi]
mov esi, dword [esp + 0x60]
sub esi, 4
jb 0x433599
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43359e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x433588
cmp esi, 0xfffffffc
je 0x4335cb
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x433617
cmp esi, 0xfffffffd
je 0x4335cb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x433617
cmp esi, 0xfffffffe
je 0x4335cb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x433617
cmp esi, 0xffffffff
je 0x4335cb
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x433617
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 1]
cmp edi, eax
je 0x4335fd
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
add esi, eax
add dword [esp + 0x58], eax
mov eax, dword [edx + 0x20]
inc eax
mov dword [esp + 0x3c], esi
cdq
idiv dword [esp + 0x64]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], edx
jmp 0x433601
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x5c], edi
cmp edi, ecx
jae 0x43370a
mov edx, dword [esp + 0x60]
jmp 0x433570
cmp byte [esp + 0xf], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x74], ecx
je 0x43364b
mov eax, edi
mov dword [esp + 0x64], edi
sub eax, dword [esp + 0x14]
imul eax, dword [edx + 4]
mov edx, dword [esp + 0x2c]
add edx, eax
add eax, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
jmp 0x433653
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, ecx
mov edi, ecx
imul eax, dword [esp + 0x50]
mov esi, ecx
imul edi, dword [esp + 0x78]
imul esi, dword [esp + 0x30]
push 0x518188
mov dword [esp + 0x74], eax
call fcn.004dad37
add esp, 4
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
imul eax, dword [esp + 0x64]
push esi
push edi
push eax
push dword [esp + 0x7c]
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 dword [esp + 0x78]
call fcn.004dab64
mov eax, dword [esp + 0x18]
add esp, 4
cmp byte [esp + 0xf], 0
mov ecx, dword [esp + 0x30]
cmovne eax, dword [esp + 0x5c]
cmp eax, ecx
jae 0x43370a
mov edi, dword [esp + 0x48]
mov esi, ecx
mov ecx, dword [esp + 0x38]
sub esi, eax
nop word [eax + eax]
push dword [esp + 0x44]
push ecx
push edi
call fcn.004cd830
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 4]
add ecx, eax
add edi, eax
mov dword [esp + 0x38], ecx
sub esi, 1
jne 0x4336e0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x34]
lea eax, [edx + edi]
cmove eax, edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x2c]
lea eax, [edx + edi]
cmove eax, edi
mov edx, eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x18]
jl 0x433500
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
lea eax, [edx - 1]
cmp dword [esp + 0x14], eax
je 0x433777
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
imul eax, dword [esp + 0x24]
add edi, eax
add ecx, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x4334b4
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc