Function at 0x436dd0
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 + 0xe89c]
test eax, eax
je 0x436df5
cmp dword [esi], eax
jne 0x436df9
cmp dword [esi], eax
je 0x436e06
call fcn.004369a0
test eax, eax
je 0x437611
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 0x436eb2
cmp eax, 1
jne 0x436ea7
mov ecx, edx
and ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x436eae
mov eax, edx
and eax, 1
sub edx, eax
mov dword [esp + 0x14], edx
cmp edi, 1
mov edi, dword [esp + 0xc]
jne 0x436ecb
cmp byte [edi + 0x74], 0
jne 0x436ecb
cmp dword [edi + 0x70], 0
jne 0x436ecb
mov esi, dword [esi]
jmp 0x436ece
mov esi, dword [edi + 0x18]
mov eax, ecx
mov byte [esp + 0xb], 0
sub eax, edx
cmp eax, 0x10
jge 0x436eeb
mov dword [esp + 0x20], 8
mov byte [esp + 0xb], 1
jmp 0x436eff
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 0x437314
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x894], 0
jne 0x437314
cmp dword [edi + 0x60], 0
je 0x437314
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 0x437607
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 0x4372d1
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 0x43729c
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 0x437044
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x437049
add ecx, 4
add edx, 4
sub esi, 4
jae 0x437033
cmp esi, 0xfffffffc
je 0x437076
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4370bf
cmp esi, 0xfffffffd
je 0x437076
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4370bf
cmp esi, 0xfffffffe
je 0x437076
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4370bf
cmp esi, 0xffffffff
je 0x437076
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4370bf
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 0x43729c
mov edx, dword [esp + 0x60]
jmp 0x437022
cmp byte [esp + 0xb], 0
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
je 0x437126
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 0x43715a
mov dword [esp + 0x34], edx
jmp 0x43722c
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 0x43715e
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 0x4371dc
mov eax, dword [esp + 0x30]
mov edx, ecx
sub esi, 4
jb 0x437193
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x437198
add edx, 4
add eax, 4
sub esi, 4
jae 0x437182
cmp esi, 0xfffffffc
je 0x4371cc
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4371c5
cmp esi, 0xfffffffd
je 0x4371cc
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4371c5
cmp esi, 0xfffffffe
je 0x4371cc
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4371c5
cmp esi, 0xffffffff
je 0x4371cc
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x4371cc
mov byte [esp + 0xa], 0
jmp 0x4371d4
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.0051a200
mov eax, dword [esp + 0x34]
push esi
push eax
push dword [esp + 0x40]
call fcn.0051a200
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 0x437170
cmp byte [esp + 0xa], 0
je 0x437255
mov esi, dword [esp + 0x4c]
push 0x569fa8
call fcn.0052bf02
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 0x43727f
push 0x569fa8
call fcn.0052bf02
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.0051cad9
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 0x436fa3
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 0x436f62
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 0x437607
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 0x4375ce
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 0x43758a
mov eax, dword [esp + 0xc]
nop dword [eax]
mov eax, dword [eax + 0x20]
imul eax, edx
cmp byte [ebp + 0x14], 0
jne 0x4374a1
mov edx, dword [esp + 0x5c]
lea ecx, [eax + esi]
mov esi, dword [esp + 0x70]
add edx, eax
sub esi, 4
jb 0x437423
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x437428
add ecx, 4
add edx, 4
sub esi, 4
jae 0x437412
cmp esi, 0xfffffffc
je 0x437455
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4374a1
cmp esi, 0xfffffffd
je 0x437455
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4374a1
cmp esi, 0xfffffffe
je 0x437455
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4374a1
cmp esi, 0xffffffff
je 0x437455
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4374a1
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 1]
cmp edi, eax
je 0x437487
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 0x43748b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x70]
inc edi
mov dword [esp + 0x6c], edi
cmp edi, ecx
jb 0x4373f0
jmp 0x43758a
cmp byte [esp + 0xb], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x14]
mov eax, ecx
je 0x4374d6
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 0x4374df
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 0x569fa8
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], ecx
call fcn.0052bf02
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.0051cad9
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 0x43758a
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.0051a200
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 0x437560
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 0x437380
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 0x4375f7
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 0x437336
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10