Function at 0x436ec0
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 0x436ee5
cmp dword [esi], eax
jne 0x436ee9
cmp dword [esi], eax
je 0x436ef6
call fcn.00436a90
test eax, eax
je 0x437701
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 0x436fa2
cmp eax, 1
jne 0x436f97
mov ecx, edx
and ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x436f9e
mov eax, edx
and eax, 1
sub edx, eax
mov dword [esp + 0x14], edx
cmp edi, 1
mov edi, dword [esp + 0xc]
jne 0x436fbb
cmp byte [edi + 0x74], 0
jne 0x436fbb
cmp dword [edi + 0x70], 0
jne 0x436fbb
mov esi, dword [esi]
jmp 0x436fbe
mov esi, dword [edi + 0x18]
mov eax, ecx
mov byte [esp + 0xb], 0
sub eax, edx
cmp eax, 0x10
jge 0x436fdb
mov dword [esp + 0x20], 8
mov byte [esp + 0xb], 1
jmp 0x436fef
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 0x437404
mov eax, dword [edi + 0x68]
cmp byte [eax + 0x894], 0
jne 0x437404
cmp dword [edi + 0x60], 0
je 0x437404
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 0x4376f7
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 0x4373c1
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 0x43738c
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 0x437134
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x437139
add ecx, 4
add edx, 4
sub esi, 4
jae 0x437123
cmp esi, 0xfffffffc
je 0x437166
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4371af
cmp esi, 0xfffffffd
je 0x437166
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4371af
cmp esi, 0xfffffffe
je 0x437166
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4371af
cmp esi, 0xffffffff
je 0x437166
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4371af
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 0x43738c
mov edx, dword [esp + 0x60]
jmp 0x437112
cmp byte [esp + 0xb], 0
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
je 0x437216
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 0x43724a
mov dword [esp + 0x34], edx
jmp 0x43731c
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 0x43724e
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 0x4372cc
mov eax, dword [esp + 0x30]
mov edx, ecx
sub esi, 4
jb 0x437283
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x437288
add edx, 4
add eax, 4
sub esi, 4
jae 0x437272
cmp esi, 0xfffffffc
je 0x4372bc
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4372b5
cmp esi, 0xfffffffd
je 0x4372bc
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4372b5
cmp esi, 0xfffffffe
je 0x4372bc
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4372b5
cmp esi, 0xffffffff
je 0x4372bc
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x4372bc
mov byte [esp + 0xa], 0
jmp 0x4372c4
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.0051aed0
mov eax, dword [esp + 0x34]
push esi
push eax
push dword [esp + 0x40]
call fcn.0051aed0
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 0x437260
cmp byte [esp + 0xa], 0
je 0x437345
mov esi, dword [esp + 0x4c]
push 0x569fe8
call fcn.0052cbc2
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 0x43736f
push 0x569fe8
call fcn.0052cbc2
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.0051d799
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 0x437093
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 0x437052
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 0x4376f7
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 0x4376be
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 0x43767a
mov eax, dword [esp + 0xc]
nop dword [eax]
mov eax, dword [eax + 0x20]
imul eax, edx
cmp byte [ebp + 0x14], 0
jne 0x437591
mov edx, dword [esp + 0x5c]
lea ecx, [eax + esi]
mov esi, dword [esp + 0x70]
add edx, eax
sub esi, 4
jb 0x437513
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x437518
add ecx, 4
add edx, 4
sub esi, 4
jae 0x437502
cmp esi, 0xfffffffc
je 0x437545
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x437591
cmp esi, 0xfffffffd
je 0x437545
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x437591
cmp esi, 0xfffffffe
je 0x437545
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x437591
cmp esi, 0xffffffff
je 0x437545
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x437591
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 1]
cmp edi, eax
je 0x437577
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 0x43757b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x70]
inc edi
mov dword [esp + 0x6c], edi
cmp edi, ecx
jb 0x4374e0
jmp 0x43767a
cmp byte [esp + 0xb], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x14]
mov eax, ecx
je 0x4375c6
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 0x4375cf
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 0x569fe8
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], ecx
call fcn.0052cbc2
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.0051d799
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 0x43767a
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.0051aed0
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 0x437650
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 0x437470
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 0x4376e7
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 0x437426
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10