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

Disassembly:
sub esp, 0x44
push ebx
push ebp
xor ebp, ebp
cmp dword [esp + 0x68], ebp
push esi
mov esi, dword [esp + 0x54]
mov eax, dword [esi]
push edi
push esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x40], 0xffffffff
setne byte [esp + 0x17]
mov dword [esp + 0x34], eax
call fcn.00464060
mov ebx, dword [esp + 0x60]
movsx ecx, word [ebx + 0x26]
add esp, 4
test byte [ebx + 0x2c], 0x20
mov edi, eax
mov dword [esp + 0x2c], ecx
jne 0x48574b
mov dword [esp + 0x14], ebp
mov dword [esp + 0x34], 1
jmp 0x485760
push ebx
call fcn.0045e0a0
movzx edx, word [eax + 0x32]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
mov cl, byte [esp + 0x78]
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
jle 0x485886
mov dword [esp + 0x24], ebp
jmp 0x48577a
mov cl, byte [esp + 0x78]
movsx eax, word [ebx + 0x24]
cmp ebp, eax
je 0x485870
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x24]
movzx esi, byte [eax + edx + 0x14]
add eax, edx
test esi, esi
je 0x485870
cmp cl, 0xa
je 0x4857a6
movzx esi, cl
jmp 0x4857ab
cmp esi, 0xa
je 0x4857b6
cmp esi, 5
jne 0x4857bb
cmp dword [eax + 4], 0
jne 0x4857bb
mov esi, 2
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4857c3
jmp dword [eax*4 + 0x485fac]
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0045f6a0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax]
mov edx, dword [ebx]
mov eax, dword [esp + 0x30]
push ecx
push edx
push str._s._s
push eax
call fcn.0043f200
mov ecx, dword [esp + 0x7c]
push 0xffffffffffffffff
push eax
lea edx, [ecx + ebp + 1]
push edx
push esi
push 0x513
push 0x15
push edi
call fcn.0045a660
push 1
push edi
call fcn.00458230
add esp, 0x34
jmp 0x485870
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
push eax
lea edx, [ecx + ebp + 1]
push edx
push 0x4c
push edi
call fcn.00457ef0
add esp, 0x10
jmp 0x485870
mov eax, dword [esp + 0x6c]
lea esi, [eax + ebp + 1]
push esi
push 0x4d
push edi
call fcn.00457e90
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [esp + 0x64]
push esi
push eax
push ecx
call fcn.004792f0
mov edx, dword [esp + 0x60]
push edx
push edi
call fcn.00458250
add esp, 0x20
add dword [esp + 0x24], 0x18
add ebp, 1
cmp ebp, dword [esp + 0x2c]
jl 0x485776
mov esi, dword [esp + 0x58]
mov ebp, dword [ebx + 0x18]
test ebp, ebp
je 0x48597b
mov eax, dword [esp + 0x30]
test dword [eax + 0x18], 0x2000
jne 0x48597b
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x78]
add ecx, 1
cmp al, 0xa
mov dword [esi + 0x68], ecx
je 0x4858bd
movzx edx, al
mov dword [esp + 0x18], edx
jmp 0x4858c5
mov dword [esp + 0x18], 2
cmp dword [ebp], 0
mov dword [esp + 0x28], 0
jle 0x48597b
mov dword [esp + 0x2c], 0
nop
push edi
call fcn.00457f10
mov ecx, dword [esp + 0x30]
push 8
push eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
mov edx, dword [ecx + eax]
push edx
push esi
call fcn.0047c110
add esp, 0x14
cmp dword [esp + 0x18], 4
jne 0x48591c
mov eax, dword [esp + 0x7c]
push eax
push 0
push 0x10
push edi
call fcn.00457ef0
add esp, 0x10
jmp 0x485954
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx + 4]
test eax, eax
jne 0x48592d
mov eax, dword [ebx]
cmp dword [esp + 0x18], 5
jne 0x48593c
mov dword [esp + 0x18], 2
push 3
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
push 0x113
push esi
call fcn.0045f6c0
add esp, 0x18
mov ecx, dword [esp + 0x48]
push ecx
push edi
call fcn.00457f60
mov eax, dword [esp + 0x30]
add dword [esp + 0x34], 0x18
add eax, 1
add esp, 8
cmp eax, dword [ebp]
mov dword [esp + 0x28], eax
jl 0x4858e0
cmp byte [esp + 0x74], 0
je 0x485b24
cmp dword [esp + 0x14], 0
jne 0x485b24
push edi
call fcn.00457f10
movzx ebp, byte [ebx + 0x2d]
add esp, 4
cmp byte [esp + 0x78], 0xa
mov dword [esp + 0x2c], eax
je 0x4859b0
movzx ebp, byte [esp + 0x78]
jmp 0x4859ba
cmp ebp, 0xa
jne 0x4859ba
mov ebp, 2
cmp byte [esp + 0x13], 0
je 0x4859db
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
push 0x4f
push edi
call fcn.00457de0
add esp, 0x14
cmp ebp, 5
jne 0x485a15
cmp byte [esp + 0x78], 5
je 0x485a15
mov eax, dword [ebx + 8]
test eax, eax
je 0x485a15
mov edi, edi
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x485a06
cmp cl, 3
je 0x485a06
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4859f0
jmp 0x485a15
push 0x10
push edi
call fcn.00457e40
add esp, 8
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
push 0x41
push edi
call fcn.00457de0
lea eax, [ebp - 1]
add esp, 0x14
cmp eax, 4
ja case.default.0x485a3b
jmp dword [eax*4 + 0x485fbc]
mov edx, dword [esp + 0x30]
xor ebp, ebp
test dword [edx + 0x18], 0x40000
je 0x485a65
push ebp
push ebp
push 0x6d
push ebx
push esi
call fcn.004893b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x485aa2
push 0
push 0
push ebx
push esi
call fcn.00488720
add esp, 0x10
test eax, eax
jne 0x485aa2
cmp dword [ebx + 8], eax
je 0x485aca
push esi
call fcn.0045f680
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push 0
push eax
push ecx
push ebx
push esi
call fcn.0048a3e0
add esp, 0x18
mov dword [esp + 0x38], 1
jmp 0x485af8
push esi
call fcn.0045f680
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push 1
push 5
push 0
push 1
push edx
push eax
push ecx
push ebp
push ebx
push esi
call fcn.0048a4b0
add esp, 0x2c
mov dword [esp + 0x38], 1
jmp 0x485af8
mov edx, dword [esp + 0x7c]
push edx
push 0
push 0x10
push edi
call fcn.00457ef0
add esp, 0x10
jmp 0x485af8
mov ebp, 2
push ebx
push ebp
push esi
call fcn.0045f830
add esp, 0xc
mov eax, dword [esp + 0x2c]
push eax
push edi
call fcn.00457f60
mov esi, dword [esp + 0x48]
add esp, 8
test esi, esi
je 0x485b24
push 0x10
push edi
call fcn.00457e40
push esi
push edi
mov dword [esp + 0x5c], eax
call fcn.00458250
add esp, 0x10
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x485f5d
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
nop
mov eax, dword [esp + 0x2c]
cmp dword [eax], 0
mov ebx, dword [esp + 0x58]
je 0x485f48
push edi
call fcn.00457f10
add esp, 4
cmp dword [ebp + 0x24], 0
mov esi, eax
mov dword [esp + 0x20], esi
je 0x485b98
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push edx
push 0
push 0x1a
push edi
call fcn.00457ef0
mov eax, dword [esp + 0x7c]
add eax, 1
push 8
mov dword [ebx + 0x68], eax
mov ecx, dword [ebp + 0x24]
push esi
push ecx
push ebx
call fcn.0047c410
add esp, 0x20
mov dword [ebx + 0x68], 0
movzx edx, word [ebp + 0x34]
push edx
push ebx
call fcn.00479570
xor esi, esi
add esp, 8
cmp word [ebp + 0x34], si
mov dword [esp + 0x24], eax
jbe 0x485c10
mov ebx, eax
mov eax, dword [ebp + 4]
movsx eax, word [eax + esi*2]
test eax, eax
jl 0x485bd5
mov ecx, dword [esp + 0x5c]
movsx edx, word [ecx + 0x24]
cmp eax, edx
je 0x485bd5
mov ecx, dword [esp + 0x6c]
lea eax, [eax + ecx + 1]
jmp 0x485bf1
cmp dword [esp + 0x3c], ebx
je 0x485bfe
cmp dword [ebp + 0x24], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], 0xffffffff
jne 0x485bf1
mov dword [esp + 0x3c], ebx
push ebx
push eax
push 0x1f
push edi
call fcn.00457ef0
add esp, 0x10
movzx edx, word [ebp + 0x34]
add esi, 1
add ebx, 1
cmp esi, edx
jl 0x485bb4
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
movzx edx, word [ebp + 0x34]
mov esi, dword [esp + 0x24]
push ecx
push edx
push esi
push 0x2d
push edi
call fcn.00457de0
add esp, 0x14
push 0
push ebp
push edi
call fcn.00485090
add esp, 8
push eax
push 0xffffffffffffffff
push edi
call fcn.00458470
movzx eax, word [ebp + 0x34]
push eax
push esi
push ebx
call fcn.004791a0
add esp, 0x1c
cmp byte [esp + 0x13], 0
je 0x485c77
cmp dword [esp + 0x14], ebp
jne 0x485c77
cmp byte [esp + 0x74], 0
jne 0x485c77
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.00457f60
add esp, 8
jmp 0x485f48
movzx eax, byte [ebp + 0x36]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x485ca2
movzx edx, word [ebp + 0x34]
push edx
push esi
push ebx
call fcn.004795a0
mov eax, dword [esp + 0x2c]
push eax
push edi
call fcn.00457f60
add esp, 0x14
jmp 0x485f48
mov cl, byte [esp + 0x78]
cmp cl, 0xa
je 0x485cb4
movzx ecx, cl
mov dword [esp + 0x18], ecx
jmp 0x485cc1
cmp eax, 0xa
jne 0x485cc1
mov dword [esp + 0x18], 2
movzx edx, word [ebp + 0x32]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push edx
push esi
push eax
push ecx
push 0x3e
push edi
call fcn.0045a7a0
add esp, 0x18
cmp ebp, dword [esp + 0x14]
jne 0x485cec
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
jmp 0x485d04
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.00479570
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x13], 0
jne 0x485d1a
cmp dword [esp + 0x18], 5
jne 0x485e6b
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
test byte [ecx + 0x2c], 0x20
jne 0x485d5f
mov edx, dword [esp + 0x28]
push ebx
push edx
push 0x6b
push edi
call fcn.00457ef0
add esp, 0x10
cmp byte [esp + 0x13], 0
je 0x485e6b
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push 0x4f
push edi
call fcn.00457de0
add esp, 0x14
jmp 0x485e6b
cmp ebp, dword [esp + 0x14]
je 0x485daa
mov eax, dword [esp + 0x14]
xor esi, esi
cmp word [eax + 0x32], si
jbe 0x485daa
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
movzx eax, word [edx + esi*2]
push eax
push ebp
call fcn.0045e0d0
mov edx, dword [esp + 0x30]
movsx eax, ax
lea ecx, [ebx + esi]
push ecx
push eax
push edx
push 0x2b
push edi
call fcn.00457de0
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + 0x32]
add esi, 1
add esp, 0x1c
cmp esi, ecx
jl 0x485d71
cmp byte [esp + 0x13], 0
je 0x485e6b
mov edx, dword [esp + 0x14]
movzx esi, word [edx + 0x32]
push edi
mov dword [esp + 0x54], esi
call fcn.004580e0
mov ebx, eax
mov eax, dword [ebp + 0x38]
and al, 3
add esp, 4
add ebx, esi
cmp al, 2
mov dword [esp + 0x48], 0x4e
jne 0x485de9
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
jmp 0x485df1
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
xor esi, esi
cmp dword [esp + 0x50], esi
jle 0x485e6b
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + esi*4]
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.0045e540
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
movzx edx, word [edx + 0x32]
movsx ecx, word [ecx + esi*2]
sub edx, 1
add esp, 8
cmp esi, edx
jne 0x485e3a
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x48], 0x4f
mov edx, dword [esp + 0x70]
push 0xfffffffffffffffc
push eax
mov eax, dword [esp + 0x4c]
add eax, esi
push eax
push ebx
lea eax, [edx + ecx + 1]
mov ecx, dword [esp + 0x58]
push eax
push ecx
push edi
call fcn.0045a660
mov edx, dword [esp + 0x30]
movzx eax, word [edx + 0x32]
add esi, 1
add esp, 0x1c
cmp esi, eax
jl 0x485e00
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x485ea6
cmp eax, 3
jle 0x485e95
cmp eax, 4
jne 0x485ea6
mov ecx, dword [esp + 0x7c]
push ecx
push 0
push 0x10
push edi
call fcn.00457ef0
mov ebx, dword [esp + 0x68]
add esp, 0x10
jmp 0x485f0d
mov ebx, dword [esp + 0x58]
push ebp
push eax
push ebx
call fcn.0045f720
add esp, 0xc
jmp 0x485f0d
mov ebx, dword [esp + 0x58]
push ebx
xor esi, esi
call fcn.0045f680
mov edx, dword [esp + 0x34]
add esp, 4
test dword [edx + 0x18], 0x40000
je 0x485ed6
mov eax, dword [esp + 0x5c]
push esi
push esi
push 0x6d
push eax
push ebx
call fcn.004893b0
add esp, 0x14
mov esi, eax
cmp ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
sete cl
push ecx
mov ecx, dword [esp + 0x6c]
push 5
push 0
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push esi
push eax
push ebx
call fcn.0048a4b0
add esp, 0x28
mov dword [esp + 0x38], 1
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.00457f60
movzx edx, word [ebp + 0x34]
mov esi, dword [esp + 0x2c]
push edx
push esi
push ebx
call fcn.004795a0
add esp, 0x14
cmp dword [esp + 0x1c], esi
je 0x485f48
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.004795a0
add esp, 0xc
mov ebp, dword [ebp + 0x14]
add dword [esp + 0x28], 1
add dword [esp + 0x2c], 4
test ebp, ebp
jne 0x485b40
mov eax, dword [esp + 0x40]
test eax, eax
je 0x485f96
add eax, 1
push eax
push 0
push 0x10
push edi
call fcn.00457ef0
mov eax, dword [esp + 0x5c]
push eax
push edi
call fcn.00458250
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x50]
add esp, 0x18
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x44
ret