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

Disassembly:
push 0xffffffffffffffff
push 0x4d85ab
mov eax, dword fs:[0]
push eax
sub esp, 0xec
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esp + 0x110], 0
je 0x485463
cmp dword [esi + 0x60], 0
jne 0x485d30
mov ebp, dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esi + 0x60], 1
xor edi, edi
call ebp
push eax
call fcn.00420356
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.user32.dll_GetDC]
push eax
call fcn.004246b4
mov ebx, eax
test ebx, ebx
je 0x4854c3
mov ecx, dword [ebx + 8]
push 0xc
push ecx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edi, eax
call ebp
push eax
call fcn.00420356
mov edx, dword [ebx + 4]
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
add edi, 0xffffffff
mov ecx, 7
cmp ecx, edi
sbb edi, edi
add edi, 1
mov ecx, esi
call fcn.00484490
mov ecx, esi
call fcn.004844e0
test edi, edi
je 0x4854df
call fcn.00484880
jmp 0x485d30
mov eax, 5
mov ecx, 0xd
mov edi, 0xf
mov ebp, 0x1e
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ecx
mov ecx, 0x10
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], eax
mov edx, 0x46
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xb8], eax
mov eax, 0x5a
mov ebx, 0x21
mov dword [esp + 0x38], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], 0xa5
mov dword [esp + 0x40], 0x1f
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], 0x32
mov dword [esp + 0x60], 0x29
mov dword [esp + 0x6c], 0x8f
mov dword [esp + 0x70], 0x23
mov dword [esp + 0x74], 0x11
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x26
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], 0x4b
mov dword [esp + 0x90], 0x27
mov dword [esp + 0x94], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0x2b
mov dword [esp + 0xa4], 0x2e
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], 0x14
mov dword [esp + 0xb0], 0x28
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], 0x2a
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x14], 0xa
jmp 0x485630
mov edx, dword [edi + 4]
mov eax, dword [edi]
push edx
push eax
mov ecx, esi
call fcn.00484460
mov ecx, dword [edi - 4]
push eax
push ecx
mov ecx, esi
call fcn.00484460
push eax
call fcn.004843c0
mov edx, dword [edi - 8]
add edi, 0x10
sub dword [esp + 0x14], 1
mov dword [esi + edx*4 + 0x68], eax
jne 0x485630
fld dword [0x4edd40]
mov ecx, 0x23
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ecx
mov ecx, 0x25
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
mov ecx, 0x26
mov eax, 0x64
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], ecx
mov ecx, 0x27
mov dword [esp + 0x4c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x98], ecx
mov ecx, 0x2f
mov eax, 0x28
push ecx
mov edx, 0x1f
fstp dword [esp]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xbc], eax
mov edi, 0x50
mov eax, 0x2c
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xcc], eax
mov eax, 0xb4
mov dword [esp + 0xd8], edx
mov edx, 0x2e
push 1
mov dword [esp + 0x74], edi
mov dword [esp + 0xc4], edi
mov edi, 0x2d
mov dword [esp + 0xac], ecx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x100], ecx
push ebp
mov ecx, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], 0x32
mov dword [esp + 0x4c], 0x20
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 0xd
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], 0x29
mov dword [esp + 0x80], ebx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x98], 0x55
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa8], 0x32
mov dword [esp + 0xac], 0x2b
mov dword [esp + 0xb4], 0x2b
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xd0], 0x29
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xf4], edx
mov dword [esp + 0xf8], eax
mov dword [esp + 0x100], ebx
mov dword [esp + 0x108], eax
call fcn.00484460
push eax
push 0xf
call fcn.00484460
push eax
call fcn.00484b20
test eax, eax
je 0x485845
fld dword [0x4edd40]
push ecx
fstp dword [esp]
push ebp
mov ecx, esi
call fcn.00484460
push eax
push 0xf
call fcn.00484460
push eax
call fcn.004851e0
mov dword [esi + 0xe0], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x1c], 0xd
fild dword [edi + 4]
mov ebx, dword [edi]
push ecx
mov ecx, esi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
push 1
push ebx
call fcn.00484460
push eax
mov eax, dword [edi - 4]
push eax
call fcn.00484460
push eax
call fcn.00484b20
test eax, eax
jne 0x4858a7
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
push ebx
mov ecx, esi
call fcn.00484460
push eax
mov eax, dword [edi - 4]
push eax
call fcn.00484460
push eax
call fcn.00484bc0
mov ecx, dword [edi - 8]
mov dword [esi + ecx*4 + 0x68], eax
add edi, 0x10
sub dword [esp + 0x1c], 1
jne 0x485851
fld dword [0x4edd3c]
push ecx
fstp dword [esp]
push 1
push 0x23
mov ecx, esi
call fcn.00484460
push eax
push 0x29
call fcn.00484460
push eax
call fcn.00484b20
test eax, eax
je 0x4858ff
fld dword [0x4edd3c]
push ecx
fstp dword [esp]
push 0x23
mov ecx, esi
call fcn.00484460
push eax
push 0x29
call fcn.00484460
push eax
call fcn.004851e0
mov dword [esi + 0xf4], eax
push ebp
mov ecx, esi
call fcn.00484460
shr eax, 0x10
movzx ecx, al
imul ecx, ecx, 0x32
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 5
mov ecx, esi
mov ebx, eax
call fcn.00484460
shr eax, 0x10
movzx eax, al
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add bl, cl
push 0xd
mov ecx, esi
call fcn.00484460
shr eax, 0x10
movzx eax, al
lea edi, [eax + eax*4]
add edi, edi
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add bl, al
xor eax, eax
mov ah, bl
push ebp
mov dword [esp + 0x20], eax
call fcn.00484460
movzx edi, ah
imul edi, edi, 0x32
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, ecx
push 5
mov ecx, esi
call fcn.00484460
movzx eax, ah
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0xd
add bl, al
call fcn.00484460
movzx eax, ah
lea edi, [eax + eax*4]
add edi, edi
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
mov eax, dword [esp + 0x1c]
shr ecx, 0x1f
add ecx, edx
add bl, cl
mov al, bl
push ebp
mov ecx, esi
shl eax, 8
mov dword [esp + 0x20], eax
call fcn.00484460
movzx edi, al
imul edi, edi, 0x32
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 5
mov ebx, eax
call fcn.00484460
movzx eax, al
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add bl, cl
push 0xd
mov ecx, esi
call fcn.00484460
movzx eax, al
lea edi, [eax + eax*4]
add edi, edi
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add bl, al
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
or ebx, ecx
push 0xf
mov ecx, esi
mov dword [esi + 0xf8], ebx
call fcn.00484460
mov ebx, eax
mov edx, ebx
shr edx, 0x10
movzx edi, bl
movzx ebp, bh
cmp edi, ebp
movzx edx, dl
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
mov eax, edi
jg 0x485a96
mov eax, ebp
cmp eax, edx
jle 0x485aac
cmp edi, ebp
jle 0x485aa6
mov ecx, edi
mov dword [esp + 0x14], ecx
jmp 0x485ab4
mov dword [esp + 0x14], ebp
jmp 0x485ab0
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x485ac4
mov dword [esi + 0x128], 0x232323
jmp 0x485b11
mov eax, 0xff
sub eax, ecx
cmp eax, 0x23
jle 0x485ad5
mov eax, 0x23
add eax, ecx
mov dword [esp + 0x1c], eax
imul eax, edx
cdq
idiv ecx
xor ecx, ecx
mov ch, al
mov eax, dword [esp + 0x1c]
imul eax, ebp
mov ebp, dword [esp + 0x14]
cdq
idiv ebp
mov cl, al
mov eax, dword [esp + 0x1c]
imul eax, edi
cdq
idiv ebp
mov ebp, dword [esp + 0x20]
shl ecx, 8
movzx edx, al
or ecx, edx
mov dword [esi + 0x128], ecx
push 0x10
mov ecx, esi
call fcn.00484460
movzx ecx, al
movzx edx, ah
shr eax, 0x10
cmp ecx, edx
movzx eax, al
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov eax, ecx
jg 0x485b3a
mov eax, edx
cmp eax, dword [esp + 0x14]
jle 0x485b48
cmp ecx, edx
jg 0x485b4c
mov ecx, edx
jmp 0x485b4c
mov ecx, dword [esp + 0x14]
test ebx, ebx
jne 0x485b5c
mov dword [esi + 0x12c], 0x7f7f7f
jmp 0x485bbd
test ecx, ecx
jne 0x485b68
mov dword [esi + 0x12c], ecx
jmp 0x485bbd
lea eax, [ecx - 0x2b]
xor ebx, ebx
test eax, eax
setl bl
sub ebx, 1
and ebx, eax
mov eax, ebx
imul eax, dword [esp + 0x14]
cdq
idiv ecx
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dh, al
mov eax, ebx
imul eax, dword [esp + 0x20]
mov dword [esp + 0x20], edx
cdq
idiv ecx
mov edx, dword [esp + 0x20]
mov dl, al
mov eax, ebx
imul eax, dword [esp + 0x18]
shl edx, 8
mov dword [esp + 0x18], edx
cdq
idiv ecx
movzx ecx, al
mov eax, dword [esp + 0x18]
or eax, ecx
mov dword [esi + 0x12c], eax
mov ecx, dword [esi + 0xe4]
fnstcw word [esp + 0x14]
mov edx, ecx
shr edx, 0x10
movzx eax, dl
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x14]
fild dword [esp + 0x18]
fld qword [0x4ec910]
or eax, 0xc00
mov dword [esp + 0x18], eax
fmul st(1), st(0)
movzx eax, ch
fxch st(1)
fldcw word [esp + 0x18]
xor ebx, ebx
add edi, 0xf
fistp dword [esp + 0x18]
movzx edx, byte [esp + 0x18]
mov dword [esp + 0x18], eax
mov bh, dl
fldcw word [esp + 0x14]
fild dword [esp + 0x18]
fnstcw word [esp + 0x14]
fmul st(1)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
movzx eax, cl
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx edx, byte [esp + 0x18]
mov dword [esp + 0x18], eax
mov bl, dl
fldcw word [esp + 0x14]
fild dword [esp + 0x18]
fnstcw word [esp + 0x14]
shl ebx, 8
fmulp st(1)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov cl, byte [esp + 0x18]
movzx edx, cl
or ebx, edx
cmp edi, 0xff
fldcw word [esp + 0x14]
mov dword [esi + 0xf0], ebx
mov edx, edi
jl 0x485c85
mov edx, 0xff
add ebp, 0xf
cmp ebp, 0xff
mov ecx, ebp
jl 0x485c97
mov ecx, 0xff
mov eax, dword [esp + 0x2c]
add eax, 0xf
cmp eax, 0xff
jl 0x485caa
mov eax, 0xff
xor ebx, ebx
mov bh, al
movzx eax, dl
push 0x1e
mov bl, cl
mov ecx, esi
shl ebx, 8
or ebx, eax
mov dword [esi + 0xc0], ebx
call fcn.00484460
mov dword [esi + 0x13c], eax
call fcn.00484880
lea ecx, [esp + 0x24]
call fcn.004a75e0
push 0x4edd28
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x110], 0
call fcn.004a7930
lea ecx, [esp + 0x24]
call fcn.004a78a0
test eax, eax
je 0x485d1c
add esi, 0x14c
push esi
push 0xed9
push 0
push 0
lea ecx, [esp + 0x34]
call fcn.004a77f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x108], 0xffffffff
call fcn.004a7a80
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 4