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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x88]
test edi, edi
jne 0x46b196
mov edi, 1
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x46b1bd
mov ecx, dword [ebp]
test ecx, ecx
je 0x46b1bd
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x46b1bd
mov eax, dword [ebx]
test eax, eax
je 0x46b1bd
mov cx, word [ecx + 0xe]
cmp cx, word [eax + 0xe]
je 0x46b1c6
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
push esi
mov esi, dword [sym.imp.USER32.dll_SetRect]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x68]
add edx, ecx
push edx
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
call esi
add ebp, 0x10
push ebp
mov ebp, dword [sym.imp.USER32.dll_IntersectRect]
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
call ebp
test eax, eax
je 0x46b281
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x48]
sub eax, edx
push ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
call fcn.0041b850
add esp, 4
push eax
push ebx
call fcn.0041b830
add esp, 4
push eax
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call esi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x84]
add edx, ecx
push edx
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
call esi
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x40]
push edx
mov eax, edx
push eax
call ebp
test eax, eax
jne 0x46b28b
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
sub eax, ecx
push eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
sub ebp, edx
call fcn.00465d70
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
push ebp
inc ebx
call fcn.00465d70
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
or ebx, eax
mov eax, edi
mov edi, dword [esp + 0x88]
cdq
mov ecx, edx
mov esi, eax
mov eax, dword [0x5cd6c0]
lea edx, [edi + 0x200]
and edx, 0x7ff
mov eax, dword [eax + edx*4]
cdq
shld edx, eax, 0x10
push ecx
push esi
shl eax, 0x10
push edx
push eax
mov dword [esp + 0x48], ecx
call fcn.004f3ca0
mov ecx, dword [0x5cd6c0]
mov dword [esp + 0x14], eax
and edi, 0x7ff
mov eax, dword [ecx + edi*4]
mov ecx, dword [esp + 0x38]
cdq
shld edx, eax, 0x10
push ecx
push esi
shl eax, 0x10
push edx
push eax
call fcn.004f3ca0
mov ecx, dword [esp + 0x70]
mov esi, eax
mov eax, dword [esp + 0x6c]
sar ecx, 1
sar eax, 1
mov edi, esi
mov edx, ecx
imul ecx, dword [esp + 0x14]
imul edx, esi
mov dword [esp + 0x1c], esi
mov esi, eax
imul esi, dword [esp + 0x14]
neg edi
imul eax, edi
add edx, esi
mov esi, dword [esp + 0x60]
add eax, ecx
neg edx
neg eax
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x90], edx
mov dword [esp + 0x14], eax
call fcn.0041b8b0
movzx edi, ax
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edx
push eax
push esi
shr edi, 3
call fcn.004342d0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov esi, eax
mov eax, edi
imul eax, ecx
add eax, dword [edx + 0xc]
add esp, 0x10
neg eax
mov dword [esp + 0x60], eax
cmp ebx, 3
ja case.default.0x46b3b9
jmp dword [ebx*4 + 0x46b784]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
add ebx, edx
cmp edx, ebx
jge case.default.0x46b3b9
mov edx, dword [esp + 0x64]
add ecx, edx
sub ebx, dword [esp + 0x68]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebx
jmp 0x46b3f0
cmp edx, ecx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x10]
jge 0x46b48c
mov eax, ecx
sub eax, edx
mov dword [esp + 0x28], eax
nop
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x80]
sar eax, 0x10
add eax, ecx
cdq
idiv ecx
mov eax, dword [esp + 0x78]
mov ecx, edx
test ecx, ecx
jge 0x46b436
mov edx, dword [esp + 0x80]
add eax, edx
add ecx, eax
mov eax, ebx
sar eax, 0x10
add eax, ebp
cdq
idiv ebp
mov eax, dword [esp + 0x7c]
test edx, edx
jge 0x46b44c
add eax, ebp
push edi
add eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004342d0
add esp, 0xc
push eax
push esi
call fcn.004f37d0
mov edx, dword [esp + 0x20]
add dword [esp + 0x2c], edx
add ebx, dword [esp + 0x24]
add esp, 0xc
add esi, edi
sub dword [esp + 0x28], 1
jne 0x46b410
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x14]
add dword [esp + 0x10], ebx
add esi, eax
sub dword [esp + 0x24], 1
jne 0x46b3f0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
add ebx, edx
cmp edx, ebx
jge case.default.0x46b3b9
mov edx, dword [esp + 0x64]
add ecx, edx
sub ebx, dword [esp + 0x68]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
lea ecx, [ecx]
cmp dword [esp + 0x64], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x20], edx
jge 0x46b578
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
lea eax, [eax + edx - 1]
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
sar eax, 0x10
add eax, ebp
cdq
idiv ebp
mov eax, dword [esp + 0x7c]
mov ecx, ebx
sar ecx, 0x10
add ecx, dword [esp + 0x80]
and ecx, dword [esp + 0x28]
test edx, edx
jge 0x46b53c
add eax, ebp
push edi
add eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004342d0
add esp, 0xc
push eax
push esi
call fcn.004f37d0
mov edx, dword [esp + 0x24]
add ebx, dword [esp + 0x20]
add dword [esp + 0x2c], edx
add esp, 0xc
add esi, edi
sub dword [esp + 0x24], 1
jne 0x46b516
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x8c], edx
mov edx, dword [esp + 0x14]
add dword [esp + 0x10], edx
add esi, eax
sub dword [esp + 0x2c], 1
jne 0x46b4e0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
add ebx, edx
cmp edx, ebx
jge case.default.0x46b3b9
mov edx, dword [esp + 0x64]
add ecx, edx
sub ebx, dword [esp + 0x68]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], ebx
lea esp, [esp]
cmp edx, ecx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x10]
jge 0x46b665
mov eax, dword [esp + 0x7c]
lea eax, [eax + ebp - 1]
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
jmp 0x46b600
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x80]
sar eax, 0x10
add eax, ecx
cdq
idiv ecx
mov eax, dword [esp + 0x78]
test edx, edx
jge 0x46b61d
add eax, ecx
mov ecx, ebx
sar ecx, 0x10
add ecx, ebp
and ecx, dword [esp + 0x24]
push edi
push ecx
add eax, edx
mov edx, dword [esp + 0x7c]
push eax
push edx
call fcn.004342d0
add esp, 0xc
push eax
push esi
call fcn.004f37d0
mov eax, dword [esp + 0x20]
add dword [esp + 0x2c], eax
add ebx, dword [esp + 0x24]
add esp, 0xc
add esi, edi
sub dword [esp + 0x2c], 1
jne 0x46b600
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x14]
add dword [esp + 0x10], ebx
add esi, eax
sub dword [esp + 0x28], 1
jne 0x46b5d0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
add ebx, edx
cmp edx, ebx
jge case.default.0x46b3b9
mov edx, dword [esp + 0x64]
add ecx, edx
sub ebx, dword [esp + 0x68]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
jmp 0x46b6c0
cmp dword [esp + 0x64], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x20], edx
jge 0x46b754
mov eax, dword [esp + 0x7c]
lea edx, [eax + ebp - 1]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x80]
lea eax, [eax + edx - 1]
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov edi, edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
sar ecx, 0x10
mov edx, ebx
sar edx, 0x10
add edx, dword [esp + 0x80]
add ecx, ebp
and ecx, dword [esp + 0x24]
and edx, dword [esp + 0x28]
push edi
push ecx
push edx
push eax
call fcn.004342d0
add esp, 0xc
push eax
push esi
call fcn.004f37d0
mov ecx, dword [esp + 0x24]
add ebx, dword [esp + 0x20]
add dword [esp + 0x2c], ecx
add esp, 0xc
add esi, edi
sub dword [esp + 0x2c], 1
jne 0x46b700
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x8c], edx
mov edx, dword [esp + 0x14]
add dword [esp + 0x10], edx
add esi, eax
sub dword [esp + 0x30], 1
jne 0x46b6c0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret