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

Disassembly:
push 0xffffffffffffffff
push 0x626f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push esi
mov al, byte [0xa24818]
mov dword [esp + 0xe8], 1
test al, 1
jne 0x485c7d
or al, 1
xor esi, esi
mov byte [0xa24818], al
lea eax, [esp + 0x2b]
push eax
lea ecx, [esp + 0x1f]
push esi
push ecx
mov ecx, 0xa24800
call fcn.00486740
push 0x4861c0
call fcn.006132e0
add esp, 4
jmp 0x485c7f
xor esi, esi
cmp dword [0xa2480c], esi
je 0x485c91
mov ecx, 0xa24800
call fcn.004868a0
mov eax, dword [esp + 0x104]
push ebx
push ebp
cmp eax, esi
push edi
je 0x485d23
mov edx, dword [esp + 0x108]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
mov eax, dword [edx + 0x14]
cmp eax, esi
jne 0x485cbc
mov eax, 0x62d4bc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jge 0x485cce
dec ecx
mov eax, dword [edx + 0x14]
cmp eax, esi
jne 0x485cda
mov eax, 0x62d4bc
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.005a9050
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], ecx
push edx
push eax
mov ecx, 0xa24800
call fcn.00486710
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], ecx
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x20], ebp
jmp 0x485d2b
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x110], 1
jbe 0x485dd0
lea ecx, [esp + 0x10]
call fcn.004388e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x108]
cmp edx, eax
je 0x485dd0
mov edi, dword [edx + 0x14]
cmp edi, esi
jne 0x485d5d
mov edi, 0x62d4bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x14]
not ecx
dec ecx
cmp eax, esi
jne 0x485d73
mov eax, 0x62d4bc
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.005a9050
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
mov dword [esp + 0x18], esi
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x40]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, 0xa24800
call fcn.00486710
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x38]
cmp ebx, eax
jge 0x485db8
mov ebx, eax
lea ecx, [esp + 0x10]
call fcn.004388e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x108]
cmp edx, eax
jne 0x485d51
mov esi, dword [esp + 0xfc]
mov ecx, dword [esp + 0x100]
lea edx, [ebx + esi]
cmp edx, 0x3f1
jle 0x485df3
mov esi, 0x3f1
sub esi, ebx
add ecx, 0x14
mov edi, dword [esp + 0x110]
imul edi, ebp
lea eax, [edi + ecx]
cmp eax, 0x2fb
jbe 0x485e0e
mov ecx, 0x2fb
sub ecx, edi
cmp esi, 5
jl 0x485e18
cmp ecx, 5
jge 0x485e1d
mov ecx, 5
lea eax, [ebp + ebp*2]
lea eax, [eax + eax*4]
shl eax, 2
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x485e32
mov ebx, eax
add edi, ecx
lea edx, [esi + ebx]
push edi
push edx
push ecx
lea eax, [esp + 0x54]
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x110]
xor esi, esi
cmp eax, esi
je 0x4860b0
mov cl, byte [0x675a15]
xor edx, edx
sar edx, cl
mov cl, byte [0x675a19]
xor eax, eax
push 0x80
shl edx, cl
mov cl, byte [0x675a14]
sar eax, cl
mov cl, byte [0x675a18]
and edx, 0xffff
shl eax, cl
mov cl, byte [0x675a16]
and eax, 0xffff
or edx, eax
xor eax, eax
sar eax, cl
mov ecx, dword [esp + 0x58]
add ecx, 2
and eax, 0xffff
or edx, eax
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x54]
add edx, 3
add eax, 0xfffffffe
push edx
add ecx, 0xfffffffd
push eax
push ecx
call dword [0xd36b5c]
mov ecx, dword [esp + 0x120]
add esp, 0x18
mov dword [esp + 0x30], esi
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x110]
cmp eax, esi
jbe 0x4860b7
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x485efa
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [esp + 0x4c]
lea edx, [ecx + eax]
add ecx, eax
mov eax, dword [esp + 0x48]
add edx, ebp
push edx
mov edx, dword [esp + 0x54]
push edx
push ecx
lea ecx, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, esi
jne 0x485f2c
mov eax, 0x62d4bc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, 0x62d4bc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [edx + 0x14]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x485f60
mov ebp, eax
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x58]
lea eax, [esp + 0x78]
mov dword [esp + 0x58], ecx
push edx
push eax
lea ecx, [esp + 0x11c]
mov dword [esp + 0x64], 0
call fcn.00486bc0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], ecx
mov edi, dword [eax + 0x14]
test edi, edi
jne 0x485f9f
mov edi, 0x62d4bc
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x80]
push eax
push ecx
mov ecx, 0xa24800
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0
call fcn.00486bc0
mov edx, dword [eax]
mov ecx, dword [esi + 0x10]
push ebp
push 0x6416d0
mov eax, dword [eax + 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esp + 0x74], eax
push ecx
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx + 0x10]
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [esp + 0x7c]
dec ecx
push ecx
mov ecx, ebx
sub ecx, esi
push eax
mov eax, dword [esp + 0x88]
shr ecx, 1
add ecx, ebp
push eax
push ecx
call fcn.005a8380
add esp, 0x24
lea ecx, [esp + 0x14]
call fcn.006071a8
mov ecx, dword [esp + 0x10]
mov edx, dword [0x6a04c4]
mov byte [esp + 0xf4], 2
mov eax, dword [ecx + 8]
cmp eax, edx
je 0x486058
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.006071a8
mov eax, dword [esi]
mov ecx, dword [0x6a04c4]
cmp eax, ecx
je 0x486049
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x486041
lea ecx, [esp + 0x28]
call fcn.00607244
mov dword [esp + 0x10], esi
jmp 0x486077
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 8]
jne 0x48606e
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x486060
cmp dword [ecx + 8], eax
je 0x486077
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xf4], 1
call fcn.00607244
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x110]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
jb 0x485ef0
xor esi, esi
mov ecx, dword [esp + 0x108]
mov eax, dword [ecx]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x110]
mov byte [esp + 0x100], 0
call fcn.00436650
mov ecx, dword [esp + 0x108]
push ecx
call fcn.006066eb
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x108], esi
mov dword [esp + 0x110], esi
call fcn.006071a8
mov eax, dword [0x6a04c8]
pop edi
dec eax
pop ebp
mov dword [0x6a04c8], eax
pop ebx
jne 0x486120
mov edx, dword [0x6a04c4]
push edx
call fcn.006066eb
add esp, 4
mov dword [0x6a04c4], esi
lea ecx, [esp + 8]
call fcn.00607244
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xe8], 0xffffffff
push eax
mov ecx, dword [eax]
lea eax, [esp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x114]
call fcn.00486770
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.006066eb
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10c], esi
mov dword [esp + 0x114], esi
call fcn.006071a8
mov eax, dword [0xa24848]
dec eax
mov dword [0xa24848], eax
jne 0x486199
mov edx, dword [0xa24844]
push edx
call fcn.006066eb
add esp, 4
mov dword [0xa24844], esi
lea ecx, [esp + 0x1c]
call fcn.00607244
mov ecx, dword [esp + 0xe0]
pop esi
mov dword fs:[0], ecx
add esp, 0xe8
ret