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

Disassembly:
sub esp, 0xbc
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
mov ebx, ecx
push esi
lea ecx, [esp + 0x60]
mov eax, dword [ebp]
push edi
push ecx
mov ecx, ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], 0xffffd8f0
call dword [eax + 0x24]
mov edx, dword [eax]
push 0
mov dword [esp + 0x84], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x88], ecx
mov ecx, ebp
mov edx, dword [eax + 8]
mov dword [esp + 0x8c], edx
mov edx, dword [ebp]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x78]
push eax
call dword [edx + 0x94]
mov esi, dword [eax]
mov edx, dword [ebp]
mov dword [esp + 0x58], esi
mov edi, dword [eax + 4]
mov dword [esp + 0x5c], edi
mov ecx, dword [eax + 8]
lea eax, [esp + 0x74]
mov dword [esp + 0x60], ecx
push eax
mov ecx, ebp
call dword [edx + 0x98]
mov ecx, eax
test esi, esi
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], ecx
je 0x436c31
test edi, edi
je 0x436c31
shl eax, 5
mov edx, eax
mov eax, 0x20
sub eax, edx
mov esi, dword [esp + 0xd4]
cdq
sub eax, edx
mov edi, dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
shl eax, 5
mov edx, eax
mov eax, 0x20
sub eax, edx
mov dword [esp + 0x24], 0
cdq
sub eax, edx
sar ecx, 1
mov edx, eax
add ecx, edi
mov edi, dword [esi + 4]
mov esi, dword [esp + 0x30]
sar edx, 1
add edx, edi
mov al, 1
test esi, esi
mov dword [esp + 0x78], edx
mov byte [esp + 0x13], al
jle 0x436c33
mov dword [esp + 0x2c], ecx
jmp 0x4367e1
mov edx, dword [esp + 0x78]
cmp al, 1
jne 0x436c33
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], 0
test ecx, ecx
jle 0x436bfd
mov dword [esp + 0x1c], edx
cmp al, 1
jne 0x436bfd
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
lea edx, [esp + 0x40]
lea eax, [esp + 0xa0]
mov dword [esp + 0x44], ecx
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x50], 0
call fcn.0041a3e0
mov esi, dword [eax]
mov edi, dword [eax + 4]
push edi
push esi
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], ecx
mov ecx, ebx
call fcn.0041a3b0
test al, al
je 0x43686d
mov eax, dword [ebx + 0x2c]
imul eax, edi
add eax, esi
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebx + 0x38]
lea edx, [ecx + ecx*4]
lea esi, [eax + edx*4]
jmp 0x43686f
xor esi, esi
mov bl, byte [esp + 0xd8]
test bl, bl
jne 0x4368be
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xc0]
test al, al
je 0x43689a
test esi, esi
je 0x43689a
test byte [esi + 0x83], 3
je 0x436c31
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xbc]
test al, al
jne 0x4368be
test esi, esi
je 0x436c2a
test byte [esi + 0x83], 3
jne 0x436c31
test esi, esi
je 0x436c2a
mov edi, 1
mov ecx, esi
push edi
call fcn.00420ad0
test al, al
je 0x436c2a
test bl, bl
jne 0x436a98
mov eax, dword [esp + 0x48]
test eax, eax
jge 0x4368fc
and eax, 0x8000000f
jns 0x4368f7
dec eax
or eax, 0xfffffff0
inc eax
add eax, 0x10
jmp 0x436908
and eax, 0x8000000f
jns 0x436908
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, dword [esp + 0x40]
and ecx, 0x8000003f
jns 0x436919
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, dword [esp + 0x44]
and edx, 0x8000003f
jns 0x43692a
dec edx
or edx, 0xffffffc0
inc edx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.00436c40
add esp, 4
test al, al
je 0x43696c
mov eax, dword [esp + 0x4c]
cdq
and edx, 0x1f
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x50]
cdq
and edx, 0x1f
add eax, edx
sar ecx, 5
sar eax, 5
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 4]
jmp 0x43696e
xor eax, eax
test eax, eax
mov eax, dword [ebp]
mov ecx, ebp
sete bl
and bl, 1
mov byte [esp + 0x13], bl
call dword [eax + 0xb4]
test al, al
jne 0x436a56
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x94]
push eax
push edx
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00561700
mov eax, dword [eax]
push eax
call fcn.004b6720
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jne 0x4369cc
test byte [esi + 0x83], 8
jne 0x436a56
mov eax, dword [esi]
mov ebp, dword [eax]
cmp ebp, eax
je 0x436a4f
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0xdc]
cmp edi, eax
je 0x436a3d
mov edx, dword [edi]
lea eax, [esp + 0xac]
push eax
mov ecx, edi
call dword [edx + 0x24]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x64]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x80]
mov dword [esp + 0x70], edx
push eax
lea edx, [esp + 0xc0]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x436a3d
mov ecx, dword [esp + 0xd0]
push edi
mov eax, dword [ecx]
call dword [eax + 0xb8]
and bl, al
mov ebp, dword [ebp]
mov eax, dword [esi]
cmp ebp, eax
jne 0x4369d4
mov byte [esp + 0x13], bl
mov edi, 1
mov ebp, dword [esp + 0xd0]
cmp dword [esp + 0x58], edi
jg 0x436a66
cmp dword [esp + 0x5c], edi
jle 0x436a98
mov bl, byte [esp + 0x13]
cmp dword [esp + 0x20], 0xffffd8f0
jne 0x436a77
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x20], ecx
mov al, byte [esi + 0x81]
test al, al
jne 0x436a90
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x3c]
cmp eax, edx
jne 0x436a90
mov eax, edi
jmp 0x436a92
xor eax, eax
and bl, al
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x30]
cmp eax, 2
jg 0x436aac
cmp dword [esp + 0x34], 2
jle 0x436bd5
lea edx, [eax - 2]
mov eax, dword [esp + 0x24]
or ebp, 0xffffffff
cmp eax, edx
mov ecx, ebp
mov ebx, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebp
jge 0x436acb
mov ebx, 2
cmp eax, edi
jle 0x436ad7
mov dword [esp + 0x14], 6
mov eax, dword [esp + 0x34]
lea edx, [eax - 2]
mov eax, dword [esp + 0x18]
cmp eax, edx
jge 0x436aee
mov dword [esp + 0x28], 4
cmp eax, edi
jle 0x436afb
mov eax, dword [esi + 0x14]
xor ecx, ecx
test eax, eax
jne 0x436b3c
cmp ebx, ebp
je 0x436b0e
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esi + eax*4 + 0x14]
test edx, edx
jne 0x436b3c
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x436b23
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esi + eax*4 + 0x14]
test edx, edx
jne 0x436b3c
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x436b38
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esi + eax*4 + 0x14]
test edx, edx
jne 0x436b3c
mov eax, edi
jmp 0x436b3e
xor eax, eax
mov dl, byte [esp + 0x13]
and dl, al
cmp ecx, 0xffffffff
mov byte [esp + 0x13], dl
je 0x436b64
mov al, byte [esi + 0x82]
shr al, cl
and al, 3
cmp al, 1
mov al, dl
setbe cl
and al, cl
mov byte [esp + 0x13], al
cmp ebx, 0xffffffff
je 0x436b86
mov dl, byte [esi + 0x82]
mov cl, bl
shr dl, cl
mov cl, byte [esp + 0x13]
and dl, 3
cmp dl, 1
setbe al
and cl, al
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x436baa
mov dl, byte [esi + 0x82]
shr dl, cl
mov cl, byte [esp + 0x13]
and dl, 3
cmp dl, 1
setbe al
and cl, al
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x436bce
mov dl, byte [esi + 0x82]
shr dl, cl
mov cl, byte [esp + 0x13]
and dl, 3
cmp dl, 1
setbe al
and cl, al
mov byte [esp + 0x13], cl
mov ebp, dword [esp + 0xd0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
inc eax
add edx, 0x20
mov dword [esp + 0x18], eax
cmp eax, ecx
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], edx
jl 0x436801
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
inc ecx
add esi, 0x20
cmp ecx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
jl 0x4367dd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0x10
mov byte [esp + 0x13], 0
jmp 0x436bd5
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0x10