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

Disassembly:
sub esp, 0x88
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], ebx
cmp dword [esi + 0x48], ebx
je 0x46c016
cmp dword [esi + 0x28], ebx
je 0x46c016
cmp dword [esi + 0x864], ebx
je 0x46c016
mov edi, dword [esp + 0x98]
push edi
call fcn.00401480
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x4c]
push edi
lea eax, [esp + 0x50]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x46c016
mov edi, dword [esi + 0x48]
push ebp
xor ebp, ebp
cmp byte [edi], 0
je 0x46badc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0046b7f0
mov eax, dword [esp + 0x18]
cmp byte [edi + eax], 0
je 0x46badc
mov eax, dword [esp + 0x14]
cmp eax, ebp
jle 0x46bad1
mov ebp, eax
mov eax, dword [esp + 0x10]
inc ebx
cmp byte [edi + eax], 0
jne 0x46baa6
xor edi, edi
cmp ebx, edi
jne 0x46bae7
mov ebx, 1
movsx ecx, word [esi + 0x54]
imul ebx, ecx
mov ecx, dword [esi + 0x858]
test cl, 4
je 0x46bafd
mov dword [esp + 0x14], edi
test cl, 8
je 0x46bb0b
mov eax, dword [esi + 0x44]
sub eax, ebx
mov dword [esp + 0x14], eax
test cl, 0x10
je 0x46bb1e
mov eax, dword [esi + 0x44]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x870]
mov ebx, dword [esp + 0x14]
add ebx, edx
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.004b59c0
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.004b59d0
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x28], eax
xor eax, eax
cmp byte [ecx], 0
je 0x46bdc5
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x60]
push edx
lea edx, [esp + 0x88]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0046b7f0
mov eax, dword [esi + 0x48]
mov edi, dword [esp + 0x84]
cmp byte [edi + eax], 0
je 0x46bdc5
mov edx, dword [esi + 0x858]
test dl, 1
je 0x46bb97
xor ecx, ecx
jmp 0x46bb9b
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
test dl, 2
je 0x46bbaf
mov eax, dword [esi + 0x40]
sub eax, ebx
mov dword [esp + 0x10], eax
mov ecx, eax
test dl, 0x20
je 0x46bbc4
mov eax, dword [esi + 0x40]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov ecx, eax
mov ebx, dword [esi + 0x86c]
mov eax, dword [esp + 0x60]
add ecx, ebx
cmp edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edi
jge 0x46bdaa
jmp 0x46bbe6
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x48]
mov eax, dword [esp + 0x18]
xor ebx, ebx
xor ebp, ebp
movsx eax, byte [eax + edx]
mov bx, word [esi + 0x50]
xor edx, edx
mov dx, word [esi + eax*8 + 0x5c]
mov bp, word [esi + eax*8 + 0x58]
xor edi, edi
mov di, word [esi + eax*8 + 0x5a]
lea edx, [edx + ebx + 1]
xor ebx, ebx
mov dword [esp + 0x94], edx
mov bx, word [esi + eax*8 + 0x5e]
xor eax, eax
mov ax, word [esi + 0x4e]
mov dword [esp + 0x1c], ecx
lea ebx, [ebx + eax + 1]
mov eax, dword [esp + 0x14]
add edx, eax
add ecx, ebx
sub edx, ebp
sub ecx, edi
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x70], eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
call fcn.004c9170
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x46bd7b
mov al, byte [esi + 0x868]
mov byte [0x577560], al
mov ecx, dword [esi + 8]
call fcn.004494d0
mov ecx, dword [esi + 8]
push eax
call fcn.004494c0
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [0x5a32b8]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x30]
push ecx
mov ecx, dword [esi + 0x864]
push 0
push 0
call fcn.00527180
mov byte [0x577560], 0xff
movsx eax, word [esi + 0x52]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
xor edx, edx
sub ebx, edi
mov dx, word [esi + 0x4e]
add eax, ebp
sub ebx, edx
add eax, ebx
inc ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x46bbe2
movsx ecx, word [esi + 0x54]
mov edx, dword [esp + 0x14]
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x48]
cmp byte [eax + edx], 0
jne 0x46bb5a
mov eax, dword [esi + 0x874]
test eax, eax
je 0x46bfe3
mov eax, dword [esi + 0x878]
test eax, eax
je 0x46bfe3
mov eax, dword [esi + 0x48]
cmp byte [eax], 0
jne 0x46be3d
mov ecx, dword [esi + 0x858]
test cl, 1
je 0x46bdf8
xor eax, eax
jmp 0x46bdfc
mov eax, dword [esp + 0x10]
test cl, 2
je 0x46be0e
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x3c]
sub eax, edx
mov dword [esp + 0x10], eax
test cl, 0x20
je 0x46be25
mov eax, dword [esi + 0x40]
mov ebx, dword [esp + 0x3c]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
movsx ecx, word [esi + 0x54]
mov edi, dword [esi + 0x86c]
mov edx, dword [esp + 0x14]
add eax, edi
add edx, ecx
mov dword [esp + 0x14], edx
jmp 0x46be41
mov eax, dword [esp + 0x10]
xor edx, edx
xor ecx, ecx
mov dx, word [esi + 0x50]
mov cx, word [esi + 0x43c]
xor edi, edi
xor ebx, ebx
lea ebp, [edx + ecx + 1]
xor edx, edx
mov dx, word [esi + 0x4e]
xor ecx, ecx
mov cx, word [esi + 0x43e]
mov di, word [esi + 0x438]
mov bx, word [esi + 0x43a]
mov dword [esp + 0x1c], eax
lea edx, [edx + ecx + 1]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x90], edx
movsx edx, word [esi + 0x54]
sub ecx, edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x20], ecx
add ecx, ebp
add edx, eax
mov eax, dword [esi + 0x14]
sub ecx, edi
sub edx, ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x24], edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x64]
mov dword [esp + 0x80], ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x80], ebp
call fcn.004c9170
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x46bfe3
mov cl, byte [esi + 0x868]
mov byte [0x577560], cl
mov ecx, dword [esi + 8]
call fcn.004494d0
mov ecx, dword [esi + 8]
push eax
call fcn.004494c0
lea edx, [esp + 0x30]
push eax
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x50]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [0x5a32b8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x30]
mov ecx, dword [esi + 0x864]
push edx
push 0
push 0
call fcn.00527180
mov byte [0x577560], 0xff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x34]
mov ecx, esi
mov ebp, eax
call fcn.004b59d0
mov edi, eax
mov ecx, esi
add edi, ebx
call fcn.004b59c0
add eax, ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret 4