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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebx + 0x40]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], edi
cmp ecx, dword [esi + 8]
jb 0x485e36
cmp dword [edi], 7
jne 0x4862be
mov eax, dword [edi]
cmp eax, 8
ja case.default.0x485e3d
jmp dword [eax*4 + 0x4862c8]
mov eax, dword [esi]
movzx edx, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 4], eax
test edx, edx
je 0x4862b2
cmp edx, 0xe0
jae 0x485e77
cmp edx, 1
je 0x485e77
cmp byte [ebx + 0x50], 0
je 0x485eb1
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov word [ebx + 0x50], 0x100
cmp dword [ebx + 0x3c], 0
jne 0x485e95
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
cmp edx, 0x80
jb 0x485f51
mov eax, edx
mov dword [edi], 1
and eax, 0x1f
shl eax, 0x10
mov dword [ebx + 0x48], eax
cmp edx, 0xc0
jb 0x485ee6
mov byte [ebx + 0x51], 0
mov dword [ebx + 0x44], 5
jmp case.default.0x485e3d
cmp byte [ebx + 0x51], 0
jne 0x485e6b
mov dword [ebx + 0x44], 6
cmp edx, 0xa0
jb case.default.0x485e3d
mov dword [ebx + 0x64], 0
lea edi, [ebx + 0x78]
mov dword [ebx + 0x54], 0
mov ecx, 0x1b9b
mov dword [ebx + 0x58], 0
mov eax, 0x4000400
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
jmp case.default.0x485e3d
cmp edx, 2
ja 0x485e6b
mov dword [edi], 3
mov dword [ebx + 0x44], 8
jmp case.default.0x485e3d
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
shl eax, 8
add dword [ebx + 0x48], eax
inc dword [esi + 4]
mov dword [edi], 2
jmp case.default.0x485e3d
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
inc eax
add dword [ebx + 0x48], eax
inc dword [esi + 4]
mov dword [edi], 3
jmp case.default.0x485e3d
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
shl eax, 8
mov dword [ebx + 0x4c], eax
inc dword [esi + 4]
mov dword [edi], 4
jmp case.default.0x485e3d
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
inc eax
add dword [ebx + 0x4c], eax
inc dword [esi + 4]
mov eax, dword [ebx + 0x44]
mov dword [edi], eax
jmp case.default.0x485e3d
mov eax, dword [esi]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov byte [ebp + 0xf], dl
mov dword [esi + 4], eax
cmp dl, 0xe0
ja 0x485e6b
xor edi, edi
cmp dl, 0x2d
jb 0x486012
movzx ecx, dl
mov eax, 0x6c16c16d
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov dl, byte [ebp + 0xf]
shr ecx, 5
movzx eax, cl
add dl, 0xd3
inc edi
sub eax, 1
jne 0x486006
mov byte [ebp + 0xf], dl
mov ecx, edi
mov dword [ebx + 0x70], 0
mov eax, 1
xor edi, edi
shl eax, cl
dec eax
mov dword [ebx + 0x74], eax
cmp dl, 9
jb 0x48604c
movzx ecx, dl
mov eax, 0x38e38e39
mul ecx
shr edx, 1
movzx eax, dl
mov dl, byte [ebp + 0xf]
nop
add dl, 0xf7
inc edi
sub eax, 1
jne 0x486040
mov dword [ebx + 0x70], edi
movzx eax, dl
mov dword [ebx + 0x6c], eax
add eax, edi
cmp eax, 4
ja 0x485e6b
mov ecx, edi
mov dword [ebx + 0x64], 0
mov eax, 1
mov dword [ebx + 0x54], 0
shl eax, cl
lea edi, [ebx + 0x78]
dec eax
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x70], eax
mov ecx, 0x1b9b
mov dword [ebx + 0x5c], 0
mov eax, 0x4000400
mov dword [ebx + 0x60], 0
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
mov dword [edi], 6
cmp dword [ebx + 0x4c], 5
jb 0x485e6b
cmp dword [ebx + 8], 0
jbe 0x4860f6
nop dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4862be
mov eax, dword [esi]
movzx ecx, byte [ecx + eax]
mov eax, dword [ebx + 4]
shl eax, 8
add ecx, eax
mov dword [ebx + 4], ecx
inc dword [esi + 4]
sub dword [ebx + 8], 1
jne 0x4860d0
add dword [ebx + 0x4c], 0xfffffffb
mov dword [edi], 7
mov edi, dword [esi + 0x14]
sub edi, dword [esi + 0x10]
cmp edi, dword [ebx + 0x48]
mov edx, dword [ebx + 0x2c]
mov ecx, edx
cmovae edi, dword [ebx + 0x48]
mov eax, dword [ebx + 0x20]
sub ecx, eax
add eax, edi
cmp ecx, edi
push esi
cmova edx, eax
push ebx
mov dword [ebx + 0x28], edx
call fcn.00484c70
add esp, 8
test al, al
je 0x485e6b
mov eax, dword [ebx + 0x20]
mov edi, eax
mov ecx, dword [ebx + 0x1c]
sub edi, ecx
cmp dword [ebx + 0x3c], 0
je 0x486165
cmp eax, dword [ebx + 0x2c]
jne 0x48614f
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x18]
add eax, ecx
push edi
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
push eax
call fcn.004aab70
add esp, 0xc
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x1c], eax
add dword [esi + 0x10], edi
sub dword [ebx + 0x48], edi
jne 0x4861b3
cmp dword [ebx + 0x4c], 0
ja 0x485e6b
cmp dword [ebx + 0x68], 0
ja 0x485e6b
cmp dword [ebx + 4], 0
jne 0x485e6b
mov edi, dword [ebp - 4]
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
mov dword [edi], 0
jmp case.default.0x485e3d
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x4862be
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x4861d6
mov eax, dword [ebx + 0x6ee4]
cmp eax, dword [ebx + 0x4c]
jb 0x4862be
mov edi, dword [ebp - 4]
jmp case.default.0x485e3d
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4862a7
mov edi, eax
mov dword [ebp + 0xc], edi
nop
mov edx, dword [esi + 8]
cmp ecx, edx
jae 0x4862be
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, edi
mov edi, dword [esi + 0x14]
cmp dword [esi + 0x10], edi
jae 0x4862a0
sub edi, dword [ebp - 8]
sub edx, ecx
mov eax, dword [ebx + 0x2c]
cmp edx, edi
mov ecx, dword [ebp + 0xc]
cmovae edx, edi
sub eax, dword [ebx + 0x20]
cmp edx, eax
mov edi, ecx
cmovbe eax, edx
cmp eax, ecx
cmovbe edi, eax
sub ecx, edi
mov dword [ebx + 0x4c], ecx
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x20]
push eax
call fcn.004aab70
mov eax, dword [ebx + 0x20]
add esp, 0xc
add eax, edi
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0x24], eax
jae 0x486259
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x3c], 0
je 0x486281
cmp eax, dword [ebx + 0x2c]
jne 0x48626b
mov dword [ebx + 0x20], 0
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
push eax
call fcn.004aab70
add esp, 0xc
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x1c], eax
add dword [esi + 4], edi
add dword [esi + 0x10], edi
mov eax, dword [ebx + 0x4c]
mov edi, eax
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4861f0
mov edi, dword [ebp - 4]
test eax, eax
jne 0x4862be
mov dword [edi], 0
jmp case.default.0x485e3d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret