Function at 0x437df0
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 + 0xe8a0]
test eax, eax
je 0x437e15
cmp dword [esi], eax
jne 0x437e19
cmp dword [esi], eax
je 0x437e26
call fcn.004379c0
test eax, eax
je 0x438631
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 0x437ed2
cmp eax, 1
jne 0x437ec7
mov ecx, edx
and ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x437ece
mov eax, edx
and eax, 1
sub edx, eax
mov dword [esp + 0x14], edx
cmp edi, 1
mov edi, dword [esp + 0xc]
jne 0x437eeb
cmp byte [edi + 0x74], 0
jne 0x437eeb
cmp dword [edi + 0x70], 0
jne 0x437eeb
mov esi, dword [esi]
jmp 0x437eee
mov esi, dword [edi + 0x18]
mov eax, ecx
mov byte [esp + 0xb], 0
sub eax, edx
cmp eax, 0x10
jge 0x437f0b
mov dword [esp + 0x20], 8
mov byte [esp + 0xb], 1
jmp 0x437f1f
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 0x438334
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x894], 0
jne 0x438334
cmp dword [edi + 0x60], 0
je 0x438334
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 0x438627
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 0x4382f1
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 0x4382bc
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 0x438064
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x438069
add ecx, 4
add edx, 4
sub esi, 4
jae 0x438053
cmp esi, 0xfffffffc
je 0x438096
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4380df
cmp esi, 0xfffffffd
je 0x438096
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4380df
cmp esi, 0xfffffffe
je 0x438096
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4380df
cmp esi, 0xffffffff
je 0x438096
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4380df
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 0x4382bc
mov edx, dword [esp + 0x60]
jmp 0x438042
cmp byte [esp + 0xb], 0
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
je 0x438146
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 0x43817a
mov dword [esp + 0x34], edx
jmp 0x43824c
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 0x43817e
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 0x4381fc
mov eax, dword [esp + 0x30]
mov edx, ecx
sub esi, 4
jb 0x4381b3
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4381b8
add edx, 4
add eax, 4
sub esi, 4
jae 0x4381a2
cmp esi, 0xfffffffc
je 0x4381ec
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4381e5
cmp esi, 0xfffffffd
je 0x4381ec
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4381e5
cmp esi, 0xfffffffe
je 0x4381ec
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4381e5
cmp esi, 0xffffffff
je 0x4381ec
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x4381ec
mov byte [esp + 0xa], 0
jmp 0x4381f4
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.0052d430
mov eax, dword [esp + 0x34]
push esi
push eax
push dword [esp + 0x40]
call fcn.0052d430
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 0x438190
cmp byte [esp + 0xa], 0
je 0x438275
mov esi, dword [esp + 0x4c]
push 0x5b9638
call fcn.0053a752
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 0x43829f
push 0x5b9638
call fcn.0053a752
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.0052fd09
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 0x437fc3
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 0x437f82
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 0x438627
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 0x4385ee
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 0x4385aa
mov eax, dword [esp + 0xc]
nop dword [eax]
mov eax, dword [eax + 0x20]
imul eax, edx
cmp byte [ebp + 0x14], 0
jne 0x4384c1
mov edx, dword [esp + 0x5c]
lea ecx, [eax + esi]
mov esi, dword [esp + 0x70]
add edx, eax
sub esi, 4
jb 0x438443
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x438448
add ecx, 4
add edx, 4
sub esi, 4
jae 0x438432
cmp esi, 0xfffffffc
je 0x438475
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4384c1
cmp esi, 0xfffffffd
je 0x438475
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4384c1
cmp esi, 0xfffffffe
je 0x438475
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4384c1
cmp esi, 0xffffffff
je 0x438475
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4384c1
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 1]
cmp edi, eax
je 0x4384a7
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 0x4384ab
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x70]
inc edi
mov dword [esp + 0x6c], edi
cmp edi, ecx
jb 0x438410
jmp 0x4385aa
cmp byte [esp + 0xb], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x14]
mov eax, ecx
je 0x4384f6
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 0x4384ff
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 0x5b9638
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], ecx
call fcn.0053a752
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.0052fd09
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 0x4385aa
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.0052d430
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 0x438580
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 0x4383a0
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 0x438617
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 0x438356
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10