Function at 0x433c30
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 + 0xc], edi
mov eax, dword [edi + 0x68]
lea esi, [edi + 0x64]
mov eax, dword [eax + 0xe898]
test eax, eax
je 0x433c55
cmp dword [esi], eax
jne 0x433c59
cmp dword [esi], eax
je 0x433c66
call fcn.00433800
test eax, eax
je 0x434471
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 + 0x14], 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 + 0x10], 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 + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
cmp eax, 4
jae 0x433d12
cmp eax, 1
jne 0x433d07
mov ecx, edx
and ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x433d0e
mov eax, edx
and eax, 1
sub edx, eax
mov dword [esp + 0x14], edx
cmp edi, 1
mov edi, dword [esp + 0xc]
jne 0x433d2b
cmp byte [edi + 0x74], 0
jne 0x433d2b
cmp dword [edi + 0x70], 0
jne 0x433d2b
mov esi, dword [esi]
jmp 0x433d2e
mov esi, dword [edi + 0x18]
mov eax, ecx
mov byte [esp + 0xb], 0
sub eax, edx
cmp eax, 0x10
jge 0x433d4b
mov dword [esp + 0x20], 8
mov byte [esp + 0xb], 1
jmp 0x433d5f
cmp eax, 0x20
mov ecx, 0x40
mov edx, 0x10
cmovl ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 4]
mov edx, ecx
mov eax, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
imul eax, dword [esp + 0x40]
add edx, eax
cmp dword [edi + 8], 0
je 0x434174
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x890], 0
jne 0x434174
cmp dword [edi + 0x60], 0
je 0x434174
mov eax, dword [edi + 0x40]
add esi, edx
add eax, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x60]
add eax, edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jge 0x434467
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x38], edx
cmovl eax, edi
mov dword [esp + 0x3c], esi
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, edi
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0xc]
jge 0x434131
mov ecx, dword [esp + 0x18]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x34], esi
mov esi, edx
mov edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x78], edi
cmp ecx, edx
mov dword [esp + 0x6c], edx
mov byte [esp + 0xa], 1
cmovl edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x64], edx
sub edx, eax
imul edx, dword [esp + 0x40]
mov dword [esp + 0x50], edx
mov eax, edx
xor edx, edx
div edi
mov edx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x24]
jae 0x4340fc
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x44], eax
imul eax, edx
add ecx, eax
lea edx, [eax + esi]
mov esi, dword [esp + 0x60]
sub esi, 4
jb 0x433ea4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x433ea9
add ecx, 4
add edx, 4
sub esi, 4
jae 0x433e93
cmp esi, 0xfffffffc
je 0x433ed6
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x433f1f
cmp esi, 0xfffffffd
je 0x433ed6
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x433f1f
cmp esi, 0xfffffffe
je 0x433ed6
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x433f1f
cmp esi, 0xffffffff
je 0x433ed6
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x433f1f
mov edx, dword [esp + 0xc]
inc edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
inc eax
mov esi, dword [esp + 0x48]
add ecx, dword [edx + 4]
add esi, dword [edx + 4]
cdq
idiv dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov eax, edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x48], esi
mov dword [esp + 0x68], edi
mov dword [edx + 0x20], eax
cmp edi, dword [esp + 0x24]
jae 0x4340fc
mov edx, dword [esp + 0x60]
jmp 0x433e82
cmp byte [esp + 0xb], 0
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
je 0x433f86
mov edx, ecx
mov eax, edi
sub eax, dword [esp + 0x10]
imul eax, dword [esi + 4]
mov esi, ecx
imul esi, dword [esp + 0x4c]
imul edx, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], edx
mov edx, ecx
imul ecx, dword [esp + 0x24]
imul edx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x28], ecx
cmp edi, dword [esp + 0x24]
jb 0x433fba
mov dword [esp + 0x34], edx
jmp 0x43408c
mov eax, ecx
imul eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, ecx
imul eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
imul eax, ecx
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x28]
jmp 0x433fbe
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
sub edi, eax
mov edx, dword [esp + 0x30]
nop dword [eax]
cmp byte [esp + 0xa], 0
je 0x43403c
mov eax, dword [esp + 0x30]
mov edx, ecx
sub esi, 4
jb 0x433ff3
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x433ff8
add edx, 4
add eax, 4
sub esi, 4
jae 0x433fe2
cmp esi, 0xfffffffc
je 0x43402c
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x434025
cmp esi, 0xfffffffd
je 0x43402c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x434025
cmp esi, 0xfffffffe
je 0x43402c
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x434025
cmp esi, 0xffffffff
je 0x43402c
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x43402c
mov byte [esp + 0xa], 0
jmp 0x434034
mov al, byte [esp + 0xa]
mov byte [esp + 0xa], al
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
push esi
push dword [esp + 0x30]
push edx
call fcn.00540f80
mov eax, dword [esp + 0x34]
push esi
push eax
push dword [esp + 0x40]
call fcn.00540f80
mov eax, dword [esp + 0x24]
add esp, 0x18
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 4]
add ecx, eax
add dword [esp + 0x2c], eax
add edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
sub edi, 1
jne 0x433fd0
cmp byte [esp + 0xa], 0
je 0x4340b5
mov esi, dword [esp + 0x4c]
push 0x584fd8
call fcn.0054cea1
add esp, 4
mov edi, eax
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
mov eax, dword [ebp + 0xc]
jmp 0x4340df
push 0x584fd8
call fcn.0054cea1
add esp, 4
mov edi, eax
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x3c]
push dword [esp + 0x58]
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.005417da
add esp, 4
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
add edx, eax
add dword [esp + 0x54], eax
add esi, eax
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x18]
jl 0x433e03
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x58]
mov eax, ecx
imul eax, dword [esp + 0x20]
mov esi, dword [esp + 0x70]
add dword [esp + 0x5c], eax
add edx, eax
add esi, eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], esi
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x433dc2
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [edi + 0x40]
lea ecx, [edx + esi]
mov eax, dword [esp + 0x1c]
add edi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x10], eax
jge 0x434467
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
mov esi, ecx
cmp dword [esp + 0x1c], eax
mov ecx, eax
mov edx, edi
mov dword [esp + 0x44], eax
cmovl ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, ecx
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], esi
jge 0x43442e
mov edi, dword [esp + 0x18]
dec edi
mov dword [esp + 0x60], edi
nop word [eax + eax]
mov edi, dword [esp + 0x20]
add edi, eax
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x18]
cmp esi, edi
mov dword [esp + 0x4c], edi
cmovl edi, esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x78], edi
sub edi, eax
imul edi, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], edx
xor edx, edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x74], eax
mov eax, edi
div dword [esp + 0x74]
mov esi, dword [esp + 0x3c]
mov edx, eax
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
cmp eax, ecx
jae 0x4343ea
mov eax, dword [esp + 0xc]
nop dword [eax]
mov eax, dword [eax + 0x20]
imul eax, edx
cmp byte [ebp + 0x14], 0
jne 0x434301
mov edx, dword [esp + 0x5c]
lea ecx, [eax + esi]
mov esi, dword [esp + 0x70]
add edx, eax
sub esi, 4
jb 0x434283
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x434288
add ecx, 4
add edx, 4
sub esi, 4
jae 0x434272
cmp esi, 0xfffffffc
je 0x4342b5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x434301
cmp esi, 0xfffffffd
je 0x4342b5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x434301
cmp esi, 0xfffffffe
je 0x4342b5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x434301
cmp esi, 0xffffffff
je 0x4342b5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x434301
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 1]
cmp edi, eax
je 0x4342e7
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
add esi, eax
add dword [esp + 0x5c], eax
mov eax, dword [edx + 0x20]
inc eax
mov dword [esp + 0x3c], esi
cdq
idiv dword [esp + 0x74]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x20], edx
jmp 0x4342eb
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x70]
inc edi
mov dword [esp + 0x6c], edi
cmp edi, ecx
jb 0x434250
jmp 0x4343ea
cmp byte [esp + 0xb], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x14]
mov eax, ecx
je 0x434336
imul eax, edi
mov dword [esp + 0x74], eax
mov eax, edi
sub eax, dword [esp + 0x10]
imul eax, dword [edx + 4]
mov edx, dword [esp + 0x30]
add edx, eax
add eax, dword [esp + 0x58]
mov dword [esp + 0x38], edx
mov dword [esp + 0x68], eax
jmp 0x43433f
imul eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, ecx
mov esi, ecx
imul eax, dword [esp + 0x54]
imul ecx, dword [esp + 0x34]
imul esi, dword [esp + 0x78]
push 0x584fd8
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], ecx
call fcn.0054cea1
add esp, 4
mov edi, eax
push dword [esp + 0x78]
push esi
push dword [esp + 0x7c]
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 edi
call fcn.005417da
mov eax, dword [esp + 0x14]
add esp, 4
cmp byte [esp + 0xb], 0
mov ecx, dword [esp + 0x34]
cmovne eax, dword [esp + 0x6c]
cmp eax, ecx
jae 0x4343ea
mov edi, dword [esp + 0x68]
mov esi, ecx
mov ecx, dword [esp + 0x38]
sub esi, eax
push dword [esp + 0x64]
push ecx
push edi
call fcn.00540f80
mov eax, dword [esp + 0x18]
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 0x4343c0
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
cmp esi, dword [esp + 0x60]
lea eax, [edx + edi]
cmove eax, edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x30]
lea eax, [edx + edi]
cmove eax, edi
mov edx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x18]
jl 0x4341e0
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
lea eax, [edx - 1]
cmp dword [esp + 0x10], eax
je 0x434457
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
imul eax, dword [esp + 0x20]
add edi, eax
add ecx, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x434196
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10