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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49df88
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x168]
xor edi, edi
cmp eax, edi
je 0x482978
mov eax, dword [eax + 4]
cmp eax, edi
je 0x482978
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x482978
mov ecx, esi
call fcn.00464eb0
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.004097d0
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x50]
jge 0x4826ad
mov edx, dword [esp + 0x4c]
cmp edx, dword [esp + 0x54]
jl 0x4826d9
and dword [esi + 0x1e0], 0xfffffff0
cmp byte [esp + 0x68], 0
je 0x482978
or dword [esi + 0x1e0], 2
pop edi
pop esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 4
cmp byte [esp + 0x68], 0
mov eax, 1
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
jne 0x482705
mov dword [esp + 8], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xb
mov ecx, dword [esi + 0x1e0]
push ebx
shr ecx, 2
push ebp
mov ebx, 2
test al, cl
je 0x482726
push eax
lea ecx, [esi + 0x10]
call fcn.00486a00
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 4]
push edi
push eax
lea ecx, [esp + 0x4c]
call fcn.004660a0
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], edi
call fcn.0046fcc0
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
push 0x20
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 1
call fcn.0046f8e0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00465ec0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ebp, dword [sym.imp.GDI32.dll_OffsetViewportOrgEx]
push edi
neg eax
push eax
neg ecx
push ecx
push edx
mov byte [esp + 0x78], bl
call ebp
mov eax, dword [esp + 0x38]
push eax
mov ecx, esi
mov edi, eax
call fcn.00481f50
cmp dword [esi + 0x200], 0
je 0x4827b7
call fcn.0042c880
test al, al
jne 0x4827bf
push edi
mov ecx, esi
call fcn.0047f7e0
push edi
mov ecx, esi
call fcn.0047f430
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 1
call fcn.00465f60
and dword [esi + 0x1e0], 0xfffffff0
cmp byte [esp + 0x70], 0
je 0x4827e9
or dword [esi + 0x1e0], ebx
lea eax, [esp + 0x2c]
push eax
call fcn.004615b0
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00477ff0
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00481080
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
jg 0x482830
cmp ecx, dword [eax + 8]
jge 0x482830
mov ecx, dword [esp + 0x30]
cmp dword [eax + 4], ecx
jg 0x482830
cmp ecx, dword [eax + 0xc]
jge 0x482830
mov eax, 1
jmp 0x482832
xor eax, eax
xor ecx, ecx
test al, al
sete cl
push 0
dec ecx
xor ecx, dword [esi + 0x1e0]
and ecx, 0x40
xor dword [esi + 0x1e0], ecx
lea ecx, [esp + 0x20]
call fcn.0046fcc0
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
push 0x20
push edx
mov bl, 3
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], bl
call fcn.0046f8e0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00465ec0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
push 0
neg eax
push eax
neg ecx
push ecx
push edx
mov byte [esp + 0x78], 4
call ebp
mov edi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.00481f50
cmp dword [esi + 0x200], 0
je 0x4828c4
call fcn.0042c880
test al, al
jne 0x4828cc
push edi
mov ecx, esi
call fcn.0047f7e0
push edi
mov ecx, esi
call fcn.0047f430
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], bl
call fcn.00465f60
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
lea ecx, [esp + 0x1c]
call fcn.0046f330
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], eax
call fcn.0046f330
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
push 1
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edi, [esi + 0x10]
push 0
mov ecx, edi
call fcn.00486cc0
push 1
mov ecx, edi
call fcn.004865f0
pop ebp
pop ebx
cmp eax, 0xffffffff
je 0x48294b
mov edx, dword [esi + 0x1e0]
shr edx, 6
and dl, 1
movzx eax, dl
push eax
mov ecx, esi
call fcn.004822e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 1
call fcn.0046fd60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0
call fcn.0046fd60
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00465b20
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret 4