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

Disassembly:
mov eax, 0x109c
call fcn.004ab360
mov eax, dword [esp + 0x10a4]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x28], 1
xor esi, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov ebx, edx
push edi
test eax, eax
jne 0x485fc1
mov eax, dword [esp + 0x10b0]
test eax, eax
je 0x486b4d
mov dword [eax], 0x63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x109c
ret
mov dword [eax], esi
mov eax, dword [esp + 0x10b0]
test eax, eax
je 0x485fd0
mov dword [eax], esi
mov eax, dword [esp + 0x10b8]
test eax, eax
jne 0x485fec
mov esi, 0x10
mov ecx, str.no_error
mov edx, esi
jmp 0x486b20
mov dword [eax], esi
mov dword [esp + 0x38], 0x4b67c0
mov dword [esp + 0x3c], 0x4b68c0
mov dword [esp + 0x40], 0x4b69c0
mov dword [esp + 0x44], 0x4b6b00
test ebx, 0xd8038580
je 0x486020
mov esi, 0x11
jmp 0x486afe
cmp word [ebp], 0x28
jne 0x4864dc
lea ecx, [ebp + 4]
mov edi, 4
mov dword [esp + 0x34], ecx
mov eax, ecx
mov edx, ecx
nop dword [eax + eax]
cmp word [ebp + esi*2 + 2], 0x2a
jne 0x4864dc
mov ebp, 6
mov dword [esp + 0x10], str.UTF16_
mov ecx, edx
nop dword [eax + eax]
dec ebp
mov dword [esp + 0x20], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x1c]
cmp cx, bp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
jne 0x486099
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x486060
jmp 0x4860a8
cmp word [esp + 0x24], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x4860bf
add esi, 8
add edi, 0x10
add edx, 0x10
add eax, 0x10
or ebx, 0x800
jmp 0x4864c6
mov ecx, dword [esp + 0x30]
mov ebp, 4
add ecx, edi
mov dword [esp + 0x10], str.UCP_
dec ebp
mov dword [esp + 0x20], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x1c]
cmp cx, bp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
jne 0x48610b
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x4860d2
jmp 0x48611a
cmp word [esp + 0x24], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x486131
add esi, 6
add edi, 0xc
add edx, 0xc
add eax, 0xc
or ebx, 0x20000000
jmp 0x4864c6
mov ebp, 0xd
mov dword [esp + 0x10], str.NO_START_OPT_
mov ecx, eax
dec ebp
mov dword [esp + 0x20], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x1c]
cmp cx, bp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
jne 0x486179
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x486140
jmp 0x486188
cmp word [esp + 0x24], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x48619f
add esi, 0xf
add edi, 0x1e
add edx, 0x1e
add eax, 0x1e
or ebx, 0x4000000
jmp 0x4864c6
mov ecx, dword [esp + 0x34]
mov ebp, 3
mov dword [esp + 0x10], 0x4d2f90
lea ecx, [ecx + esi*2]
mov dword [esp + 0x24], ecx
dec ebp
mov dword [esp + 0x20], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x1c]
cmp cx, bp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x20]
jne 0x4861f0
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x4861b7
jmp 0x4861ff
cmp word [esp + 0x14], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x48621b
add esi, 5
add edi, 0xa
add edx, 0xa
add eax, 0xa
mov ecx, 0x100000
and ebx, 0xff8fffff
jmp 0x4864c4
mov ebp, 3
mov dword [esp + 0x10], 0x4d2f94
mov ecx, eax
nop word [eax + eax]
dec ebp
mov dword [esp + 0x1c], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x14]
cmp cx, bp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
jne 0x486269
mov ecx, dword [esp + 0x20]
test ebp, ebp
jne 0x486230
jmp 0x486278
cmp word [esp + 0x18], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x486294
add esi, 5
add edi, 0xa
add edx, 0xa
add eax, 0xa
mov ecx, 0x200000
and ebx, 0xff8fffff
jmp 0x4864c4
mov ecx, dword [esp + 0x24]
mov ebp, 5
mov dword [esp + 0x10], str.CRLF_
dec ebp
mov dword [esp + 0x1c], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x14]
cmp cx, bp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
jne 0x4862de
mov ecx, dword [esp + 0x20]
test ebp, ebp
jne 0x4862a5
jmp 0x4862ed
cmp word [esp + 0x18], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x486309
add esi, 7
add edi, 0xe
add edx, 0xe
add eax, 0xe
mov ecx, 0x300000
and ebx, 0xff8fffff
jmp 0x4864c4
mov ebp, 4
mov dword [esp + 0x10], str.ANY_
mov ecx, eax
dec ebp
mov dword [esp + 0x1c], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x14]
cmp cx, bp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
jne 0x486351
mov ecx, dword [esp + 0x20]
test ebp, ebp
jne 0x486318
jmp 0x486360
cmp word [esp + 0x18], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x48637c
add esi, 6
add edi, 0xc
add edx, 0xc
add eax, 0xc
mov ecx, 0x400000
and ebx, 0xff8fffff
jmp 0x4864c4
mov ecx, dword [esp + 0x24]
mov ebp, 8
mov dword [esp + 0x10], str.ANYCRLF_
nop dword [eax]
dec ebp
mov dword [esp + 0x1c], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x14]
cmp cx, bp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
jne 0x4863c9
mov ecx, dword [esp + 0x20]
test ebp, ebp
jne 0x486390
jmp 0x4863d8
cmp word [esp + 0x18], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x4863f4
add esi, 0xa
add edi, 0x14
add edx, 0x14
add eax, 0x14
mov ecx, 0x500000
and ebx, 0xff8fffff
jmp 0x4864c4
mov ebp, 0xc
mov dword [esp + 0x10], str.BSR_ANYCRLF_
mov ecx, eax
dec ebp
mov dword [esp + 0x1c], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x14], ebp
movzx ebp, byte [ecx]
mov ecx, dword [esp + 0x14]
cmp cx, bp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
jne 0x486441
mov ecx, dword [esp + 0x20]
test ebp, ebp
jne 0x486403
mov ecx, 0x800000
jmp 0x4864b2
cmp word [esp + 0x18], cx
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x486457
mov ecx, 0x800000
jmp 0x4864b2
mov ecx, str.BSR_UNICODE_
mov ebp, 0xc
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
dec ebp
mov dword [esp + 0x14], ebp
movzx ebp, word [ecx]
add ecx, 2
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
movzx ecx, byte [ecx]
cmp bp, cx
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x14]
jne 0x48649a
test ebp, ebp
jne 0x486465
jmp 0x4864ad
mov ecx, dword [esp + 0x18]
cmp cx, word [esp + 0x1c]
sbb ecx, ecx
and ecx, 2
add ecx, 0xffffffff
jne 0x4864d8
mov ecx, 0x1000000
add esi, 0xe
add edi, 0x1c
add edx, 0x1c
add eax, 0x1c
and ebx, 0xfe7fffff
or ebx, ecx
mov ebp, dword [esp + 0x30]
cmp word [ebp + esi*2], 0x28
je 0x486040
jmp 0x4864dc
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, ebx
and eax, 0x1800000
cmp eax, 0x1800000
je 0x486af9
mov eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x486569
je 0x486546
test eax, eax
je 0x486546
cmp eax, 0x100000
je 0x486521
cmp eax, 0x200000
jne 0x486af9
mov eax, 0xa
jmp 0x486526
mov eax, 0xd
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], ax
jmp 0x486593
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 2
mov dword [esp + 0xa0], 0xa000d
jmp 0x486593
cmp eax, 0x400000
je 0x486588
cmp eax, 0x500000
jne 0x486af9
mov dword [esp + 0x98], 2
jmp 0x486593
mov dword [esp + 0x98], 1
lea eax, [esp + 0xa8]
mov dword [esp + 0x78], 0
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], eax
mov eax, ebp
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0x800
mov dword [esp + 0x50], ebp
cmp word [ebp], cx
je 0x4865fe
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4865f4
lea eax, [ecx*2]
mov dword [esp + 0x8c], 0
add eax, ebp
mov dword [esp + 0x80], 0
mov dword [esp + 0x54], eax
lea edx, [esp + 0x10]
lea eax, [esi*2]
mov dword [esp + 0x84], ebx
add eax, ebp
mov dword [esp + 0x88], 0
mov dword [esp + 0x14], eax
mov ecx, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x10], eax
mov eax, 0x7d
mov word [esp + 0xa8], ax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x5c], 0
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00485840
mov esi, dword [esp + 0x50]
add esp, 0x2c
test esi, esi
jne 0x486afe
mov ebp, dword [esp + 0x2c]
cmp ebp, 0x10000
jle 0x4866bc
mov esi, 0x14
jmp 0x486afe
mov eax, dword [esp + 0x68]
imul eax, dword [esp + 0x64]
add eax, ebp
lea esi, [eax*2 + 0x28]
push esi
call fcn.00495d48
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4866e5
lea esi, [eax + 0x15]
jmp 0x486afe
mov dword [ebx], 0x50435245
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x84]
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x88]
mov word [ebx + 0xc], ax
xor eax, eax
mov word [ebx + 0xe], ax
mov dword [ebx + 0x14], eax
mov eax, 0x14
mov word [ebx + 0x18], ax
movzx eax, word [esp + 0x68]
mov word [ebx + 0x1a], ax
movzx eax, word [esp + 0x64]
mov word [ebx + 0x1c], ax
xor eax, eax
mov word [ebx + 0x1e], ax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x64], 0
movzx eax, word [ebx + 0x18]
push 0
lea edx, [ebx + eax*2]
mov dword [esp + 0x64], edx
movzx eax, word [ebx + 0x1a]
movzx ecx, word [ebx + 0x1c]
imul ecx, eax
mov eax, dword [esp + 0x4c]
lea edi, [edx + ecx*2]
mov dword [esp + 0x60], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, 0x7d
mov dword [esp + 0x50], edi
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x5c], 0
mov word [edi], ax
lea eax, [esp + 0x3c]
push eax
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x20]
push 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], edi
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
mov dword [esp + 0x34], edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00485840
movzx eax, word [esp + 0x9c]
or ecx, 0xffffffff
mov esi, dword [esp + 0x50]
add esp, 0x2c
mov word [ebx + 0x10], ax
movzx eax, word [esp + 0x78]
mov word [ebx + 0x12], ax
mov eax, dword [esp + 0x88]
or eax, 2
mov word [ebx + 0xc], ax
cmp dword [esp + 0x90], 0
mov eax, dword [esp + 0x18]
cmovne eax, ecx
mov dword [esp + 0x34], eax
test esi, esi
jne 0x486841
mov eax, dword [esp + 0x28]
mov ecx, 0x16
cmp word [eax], si
cmovne esi, ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax], cx
add eax, 2
sub eax, edi
mov ecx, 0x17
sar eax, 1
cmp eax, ebp
mov eax, dword [esp + 0x5c]
cmovg esi, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], esi
cmp eax, ecx
jbe 0x4868d8
xor edx, edx
mov dword [esp + 0x2c], 0xffffffff
test esi, esi
jne 0x4868d8
nop dword [eax]
cmp eax, ecx
jbe 0x4868d8
sub eax, 2
mov dword [esp + 0x5c], eax
movzx eax, word [eax]
movzx ebp, word [edi + eax*2]
lea eax, [edi + eax*2]
mov dword [esp + 0x14], eax
cmp ebp, dword [esp + 0x2c]
je 0x4868b8
push ebp
mov ecx, edi
call fcn.0047fcf0
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x2c], ebp
test edx, edx
je 0x4868cf
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov word [eax], cx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
jmp 0x486880
mov esi, 0x35
mov dword [esp + 0x10], esi
cmp dword [esp + 0x6c], 0x800
jle 0x4868eb
push ecx
call fcn.00495d53
add esp, 4
test esi, esi
jne 0x486903
mov ax, word [ebx + 0x12]
mov ecx, 0xf
cmp ax, word [ebx + 0x10]
cmova esi, ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x94], 0
je 0x486980
push 0xffffffffffffffff
mov ecx, edi
call fcn.0047fcf0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x486980
nop
cmp word [ebp + 2], 0
jne 0x486965
movzx eax, word [ebp - 2]
mov ecx, ebp
lea edi, [eax*2]
xor eax, eax
movzx esi, word [edi + ebp - 4]
mov word [edi + ebp - 4], ax
lea eax, [esp + 0x38]
mov edx, dword [ebx + 8]
push eax
shr edx, 0xb
push 1
and edx, 1
call fcn.0047f9d0
add esp, 8
mov word [edi + ebp - 4], si
test eax, eax
js 0x486992
mov word [ebp + 2], ax
push 0xffffffffffffffff
lea ecx, [ebp + 4]
call fcn.0047fcf0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x486920
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
test esi, esi
je 0x4869ba
push ebx
call fcn.00495d53
add esp, 4
jmp 0x486afe
cmp eax, 0xfffffffe
jne 0x4869a8
push ebx
lea esi, [eax + 0x26]
call fcn.00495d53
add esp, 4
jmp 0x486afe
cmp eax, 0xfffffffc
mov esi, 0x19
mov ecx, 0x46
cmove esi, ecx
jmp 0x48697c
mov eax, dword [ebx + 8]
mov ebp, 0x80
mov dword [esp + 0x14], eax
test al, 0x10
jne 0x486a7e
mov esi, dword [esp + 0x7c]
xor edx, edx
push esi
mov ecx, edi
call fcn.00485bf0
add esp, 4
test eax, eax
je 0x4869f2
mov eax, dword [esp + 0x14]
or eax, 0x10
mov dword [ebx + 8], eax
jmp 0x486a7e
mov edx, dword [esp + 0x1c]
test edx, edx
jns 0x486a25
xor edx, edx
mov ecx, edi
call fcn.00485e20
mov edx, eax
test edx, edx
jns 0x486a25
push esi
xor edx, edx
mov ecx, edi
call fcn.00485ce0
add esp, 4
test eax, eax
je 0x486a7e
mov eax, 0x100
or word [ebx + 0xc], ax
jmp 0x486a7e
mov word [ebx + 0x14], dx
test edx, 0x10000000
je 0x486a79
cmp dx, bp
jae 0x486a46
mov eax, dword [esp + 0x3c]
movzx ecx, dx
movzx eax, byte [ecx + eax]
cmp ax, dx
jmp 0x486a72
movzx edx, dx
mov eax, edx
shr eax, 7
movzx ecx, byte [eax + 0x4c3e00]
mov eax, edx
and eax, 0x7f
shl ecx, 7
add ecx, eax
movzx eax, word [ecx*2 + 0x4b7420]
mov eax, dword [eax*8 + 0x4c2d24]
add eax, edx
cmp eax, edx
je 0x486a79
or word [ebx + 0xc], 0x20
or word [ebx + 0xc], 0x10
mov edx, dword [esp + 0x34]
test edx, edx
js 0x486aec
test byte [ebx + 8], 0x10
je 0x486a94
test edx, 0x20000000
je 0x486aec
mov word [ebx + 0x16], dx
test edx, 0x10000000
je 0x486ae7
cmp dx, bp
jae 0x486ab5
mov eax, dword [esp + 0x3c]
movzx ecx, dx
movzx eax, byte [ecx + eax]
cmp ax, dx
jmp 0x486ae1
movzx edx, dx
mov eax, edx
shr eax, 7
movzx ecx, byte [eax + 0x4c3e00]
mov eax, edx
and eax, 0x7f
shl ecx, 7
add ecx, eax
movzx eax, word [ecx*2 + 0x4b7420]
mov eax, dword [eax*8 + 0x4c2d24]
add eax, edx
cmp eax, edx
je 0x486ae7
or word [ebx + 0xc], bp
or word [ebx + 0xc], 0x40
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x109c
ret
mov esi, 0x38
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10b8]
sub eax, dword [esp + 0x30]
sar eax, 1
mov dword [ecx], eax
mov edx, esi
mov ecx, str.no_error
test esi, esi
jle 0x486b37
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486b20
cmp byte [ecx], al
je 0x486b32
dec edx
test edx, edx
jg 0x486b20
jmp 0x486b37
mov ecx, str.Error_text_not_found__please_report_
mov eax, dword [esp + 0x10b4]
mov dword [eax], ecx
mov eax, dword [esp + 0x10b0]
test eax, eax
je 0x486b4d
mov dword [eax], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x109c
ret