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

Disassembly:
push 0xffffffffffffffff
push 0x5ca94b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x70], 0
lea edi, [esi + 0x70]
jne 0x486af7
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
call edx
cmp byte [esi + 0x52], 0
jne 0x486b02
cmp dword [esi + 0x48], 0
mov byte [esi + 0x78], 1
je 0x486290
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
mov ecx, esi
call edx
push 0x7c
lea eax, [esp + 0x60]
push 0
push eax
call fcn.005a06a0
movzx ecx, byte [esi + 0x76]
mov ebx, dword [esi + 0x6c]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
add esp, 0xc
neg ecx
sbb ecx, ecx
and ecx, 0x3800
add ebx, 0x3c
add ecx, 0x800
push ebx
mov dword [esp + 0x60], 0x7c
mov dword [esp + 0x64], 7
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push 0
push edi
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0xec], 0
call fcn.00484a40
test eax, eax
jne 0x486afb
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
test al, al
je 0x486afb
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + 0x24]
mov ecx, 8
sub ecx, dword [eax + 0x1c]
mov edi, 0x18
sub edi, dword [eax + 0x14]
mov ebp, 0x10
sub ebp, dword [eax + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xe0]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xd4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xdc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edx
cmp eax, 0x10
jne 0x4866ec
mov ebx, dword [esi + 0xa4]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x486ae0
xor eax, eax
mov byte [esp + 0x27], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp dword [esi + 0x38], eax
je 0x48648d
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059d93d
mov ecx, eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
add esp, 4
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x486489
jmp 0x486404
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov ecx, dword [esp + 0x3c]
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x44]
mov ebx, edx
shl eax, cl
mov ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x38]
and eax, dword [esp + 0x4c]
shl ebx, cl
mov ecx, edi
and ebx, dword [esp + 0x40]
or eax, ebx
mov ebx, edx
shr ebx, cl
mov ecx, dword [esp + 0x34]
shl ebx, cl
mov ecx, dword [esp + 0x28]
and ebx, dword [esp + 0x48]
or eax, ebx
cmp byte [esp + 0x27], 0
mov word [ecx], ax
je 0x486468
shr edx, 0x18
cmp edx, 0xff
jge 0x486468
movzx edx, ax
mov byte [esp + 0x27], 0
mov dword [esp + 0x20], edx
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 2
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x486400
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp byte [esi + 0x51], 0
je 0x486670
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x486670
xor ebp, ebp
cmp byte [esi + 0x77], 0
je 0x4864f5
cmp dword [esi + 0x28], ebp
movzx edx, word [eax]
mov dword [esp + 0x20], edx
mov ecx, ebx
mov edi, eax
jle 0x4866b1
mov edi, edi
xor eax, eax
cmp dword [esi + 0x24], eax
jle 0x4864d9
mov dx, word [edi]
mov word [ecx], dx
inc eax
add ecx, 2
add edi, 2
cmp eax, dword [esi + 0x24]
jl 0x4864c7
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esi + 0x24]
inc ebp
cmp ebp, dword [esi + 0x28]
lea ecx, [ecx + eax*2]
jl 0x4864c0
jmp 0x4866b1
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
mov edx, dword [esp + 0x1c]
test eax, eax
jle 0x486607
jmp 0x486510
mov eax, dword [ecx]
movzx edi, word [edx]
and eax, 0xff000000
add ecx, 4
add edx, 2
cmp eax, 0xff000000
jne 0x48652e
cmp word [esp + 0x20], di
je 0x48653f
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
inc ebp
cmp ebp, eax
jl 0x486510
jmp 0x486607
push 0x2000
call fcn.0059d93d
push 0x2000
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x3c], ebx
call fcn.005a06a0
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x38]
mov edi, dword [esp + 0x2c]
add esp, 0x10
xor ebp, ebp
test ecx, ecx
jle 0x4865b6
mov eax, dword [edx]
movzx ecx, word [edi]
shr eax, 0x18
add edx, 4
add edi, 2
test eax, eax
jle 0x4865aa
movzx ecx, cx
mov eax, ecx
shr eax, 5
and ecx, 0x8000001f
lea eax, [ebx + eax*4]
jns 0x48659d
dec ecx
or ecx, 0xffffffe0
inc ecx
mov ebx, 1
shl ebx, cl
or dword [eax], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
inc ebp
cmp ebp, ecx
jl 0x486573
xor edx, edx
jmp 0x4865c0
mov eax, dword [ebx + edx*4]
cmp eax, 0xffff
je 0x4865f1
xor ecx, ecx
lea esp, [esp]
mov edi, 1
shl edi, cl
test eax, edi
je 0x4865e3
inc ecx
cmp ecx, 0x20
jl 0x4865d0
jmp 0x4865f1
mov eax, edx
shl eax, 5
add eax, ecx
movzx ecx, ax
mov dword [esp + 0x20], ecx
inc edx
cmp edx, 0x800
jl 0x4865c0
push ebx
call fcn.0059e6bb
mov ebx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4866b1
mov edi, dword [esp + 0x1c]
mov ecx, ebx
xor ebx, ebx
cmp dword [esi + 0x28], ebx
mov ebp, eax
jle 0x4866b1
xor edx, edx
cmp dword [esi + 0x24], edx
jle 0x486657
lea esp, [esp]
mov eax, dword [ebp]
shr eax, 0x18
add ebp, 4
cmp eax, 0xff
mov ax, word [esp + 0x20]
jl 0x486648
mov ax, word [edi]
mov word [ecx], ax
inc edx
add ecx, 2
add edi, 2
cmp edx, dword [esi + 0x24]
jl 0x486630
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esi + 0x24]
inc ebx
cmp ebx, dword [esi + 0x28]
lea ecx, [ecx + eax*2]
jl 0x486625
jmp 0x4866b1
test eax, eax
je 0x4866b1
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp dword [esi + 0x28], ebp
mov ecx, ebx
jle 0x4866b1
xor eax, eax
cmp dword [esi + 0x24], eax
jle 0x48669a
mov dx, word [edi]
mov word [ecx], dx
inc eax
add ecx, 2
add edi, 2
cmp eax, dword [esi + 0x24]
jl 0x486688
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esi + 0x24]
inc ebp
cmp ebp, dword [esi + 0x28]
lea ecx, [ecx + eax*2]
jl 0x486681
mov eax, dword [esp + 0x1c]
push eax
call fcn.0059e6bb
add esp, 4
cmp byte [esi + 0x51], 0
je 0x486ae0
movzx eax, word [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 8
push eax
mov eax, dword [ecx + 0x74]
call eax
jmp 0x486ae0
cmp eax, 0x20
jne 0x486afb
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x486ae0
cmp byte [esi + 0x51], 0
mov bl, 1
mov dword [esp + 0x20], 0
je 0x486a35
mov eax, dword [esi + 0x38]
test eax, eax
je 0x486a35
cmp byte [esi + 0x77], 0
je 0x486825
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, eax
shl edx, cl
mov ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x38]
and edx, dword [esp + 0x4c]
shl ebx, cl
mov ecx, edi
mov edi, dword [esp + 0x14]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebx, dword [esp + 0x40]
mov dword [esp + 0x14], 0
shl eax, cl
or edx, ebx
mov ebx, dword [esi + 0x38]
and eax, dword [esp + 0x48]
or edx, eax
cmp dword [esi + 0x28], 0
mov dword [esp + 0x20], edx
jle 0x486a12
jmp 0x486790
cmp dword [esi + 0x24], 0
mov dword [esp + 0x18], 0
jle 0x4867f9
mov edi, edi
mov eax, dword [ebx]
mov ecx, dword [esp + 0x3c]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x44]
add ebx, 4
add edi, 4
shl edx, cl
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, ebp
and edx, dword [esp + 0x4c]
mov ebp, eax
shr ebp, cl
mov ecx, dword [esp + 0x38]
shl ebp, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebp, dword [esp + 0x40]
shl eax, cl
or edx, ebp
mov ebp, dword [esp + 0x1c]
and eax, dword [esp + 0x48]
or edx, eax
mov eax, dword [esp + 0x18]
mov dword [edi - 4], edx
inc eax
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
jl 0x4867a0
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 0x24]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
jl 0x486790
jmp 0x486a12
mov edx, dword [esi + 0x24]
imul edx, dword [esi + 0x28]
mov edi, eax
test edx, edx
jle 0x486862
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov ecx, dword [edi]
add edi, 4
test bl, bl
je 0x48685b
mov eax, ecx
shr eax, 0x18
cmp eax, 0xff
jge 0x48685b
xor bl, bl
mov dword [esp + 0x20], ecx
sub dword [esp + 0x18], 1
jne 0x486840
mov ecx, dword [esi + 0x38]
xor edi, edi
test edx, edx
jle 0x48694e
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ebx, eax
and ebx, 0xff000000
add ecx, 4
cmp ebx, 0xff000000
jne 0x486891
and eax, 0xffffff
cmp edx, eax
je 0x4868a2
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
inc edi
cmp edi, eax
jl 0x486873
jmp 0x48694e
push 0x200000
call fcn.0059d93d
push 0x200000
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x3c], ebx
call fcn.005a06a0
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x38]
add esp, 0x10
xor edx, edx
test ecx, ecx
jle 0x486909
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0x18
add edi, 4
test eax, eax
jle 0x4868fd
mov eax, ecx
shr eax, 5
and eax, 0x7ffff
lea eax, [ebx + eax*4]
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
or dword [eax], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
inc edx
cmp edx, ecx
jl 0x4868d2
xor edx, edx
jmp 0x486910
mov eax, dword [ebx + edx*4]
cmp eax, 0xffff
je 0x486931
xor ecx, ecx
lea esp, [esp]
mov edi, 1
shl edi, cl
test eax, edi
je 0x48693c
inc ecx
cmp ecx, 0x20
jl 0x486920
inc edx
cmp edx, 0x80000
jl 0x486910
jmp 0x486945
shl edx, 5
add edx, ecx
mov dword [esp + 0x20], edx
push ebx
call fcn.0059e6bb
add esp, 4
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x486a12
cmp dword [esi + 0x28], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], 0
jle 0x486a12
cmp dword [esi + 0x24], 0
mov dword [esp + 0x18], 0
jle 0x4869eb
lea ecx, [ecx]
mov eax, dword [ecx]
mov edx, eax
add ecx, 4
shr edx, 0x18
cmp edx, 0xff
mov dword [esp + 0x2c], ecx
jge 0x48699e
mov eax, dword [esp + 0x20]
mov dword [edi], eax
jmp 0x4869da
mov ecx, dword [esp + 0x3c]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, eax
shl edx, cl
mov ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x38]
and edx, dword [esp + 0x4c]
shl ebx, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebx, dword [esp + 0x40]
shl eax, cl
mov ecx, dword [esp + 0x2c]
or edx, ebx
and eax, dword [esp + 0x48]
or edx, eax
mov dword [edi], edx
mov eax, dword [esp + 0x18]
inc eax
add edi, 4
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
jl 0x486980
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 0x24]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
jl 0x48696f
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push 8
push eax
mov eax, dword [ecx + 0x74]
call eax
jmp 0x486ae0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x486ae0
cmp dword [esi + 0x28], 0
mov edi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
jle 0x486ae0
xor edx, edx
cmp dword [esi + 0x24], edx
jle 0x486ab9
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3c]
mov ebx, eax
shr ebx, cl
mov ecx, dword [esp + 0x44]
inc edx
add edi, 4
shl ebx, cl
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, ebp
and ebx, dword [esp + 0x4c]
mov ebp, eax
shr ebp, cl
mov ecx, dword [esp + 0x38]
shl ebp, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebp, dword [esp + 0x40]
shl eax, cl
or ebx, ebp
mov ebp, dword [esp + 0x1c]
and eax, dword [esp + 0x48]
or ebx, eax
mov dword [edi - 4], ebx
cmp edx, dword [esi + 0x24]
jl 0x486a60
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 0x24]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
jl 0x486a58
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x486b04
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret