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

Disassembly:
mov eax, 0x109c
call fcn.004c78a0
mov eax, dword [esp + 0x10a4]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], 1
xor esi, esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebp
push edi
mov edi, edx
test eax, eax
jne 0x4a8959
mov eax, dword [esp + 0x10b0]
test eax, eax
je 0x4a918d
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 0x4a8968
mov dword [eax], esi
mov eax, dword [esp + 0x10b8]
test eax, eax
jne 0x4a897f
mov ebx, 0x10
mov edx, ebx
jmp 0x4a9158
mov dword [eax], esi
mov dword [esp + 0x30], 0x4d4470
mov dword [esp + 0x34], 0x4d4570
mov dword [esp + 0x38], 0x4d4670
mov dword [esp + 0x3c], 0x4d47b0
test edi, 0xd8038580
je 0x4a89b3
mov ebx, 0x11
jmp 0x4a913e
cmp byte [ebp], 0x28
jne 0x4a8b46
nop dword [eax]
cmp byte [esi + ebp + 1], 0x2a
jne 0x4a8b46
push 5
lea ebx, [ebp + 2]
add ebx, esi
push str.UTF8_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a89f2
add esi, 7
or edi, 0x800
jmp 0x4a8b3c
push 4
push str.UCP_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8a14
add esi, 6
or edi, 0x20000000
jmp 0x4a8b3c
push 0xd
push str.NO_START_OPT_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8a36
add esi, 0xf
or edi, 0x4000000
jmp 0x4a8b3c
push 3
push 0x4dd0e8
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8a5f
mov eax, 0x100000
and edi, 0xff8fffff
add esi, 5
or edi, eax
jmp 0x4a8b3c
push 3
push 0x4dd0ec
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8a88
mov eax, 0x200000
and edi, 0xff8fffff
add esi, 5
or edi, eax
jmp 0x4a8b3c
push 5
push str.CRLF_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8ab1
mov eax, 0x300000
and edi, 0xff8fffff
add esi, 7
or edi, eax
jmp 0x4a8b3c
push 4
push str.ANY_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8ad7
mov eax, 0x400000
and edi, 0xff8fffff
add esi, 6
or edi, eax
jmp 0x4a8b3c
push 8
push str.ANYCRLF_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8afd
mov eax, 0x500000
and edi, 0xff8fffff
add esi, 0xa
or edi, eax
jmp 0x4a8b3c
push 0xc
push str.BSR_ANYCRLF_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8b18
mov eax, 0x800000
jmp 0x4a8b31
push 0xc
push str.BSR_UNICODE_
push ebx
call fcn.004b7e30
add esp, 0xc
test eax, eax
jne 0x4a8b46
mov eax, 0x1000000
and edi, 0xfe7fffff
or edi, eax
add esi, 0xe
cmp byte [esi + ebp], 0x28
je 0x4a89c0
test edi, 0x20000000
je 0x4a8b58
mov ebx, 0x43
jmp 0x4a913e
mov eax, edi
and eax, 0x1800000
cmp eax, 0x1800000
je 0x4a9139
mov eax, edi
and eax, 0x700000
cmp eax, 0x300000
ja 0x4a8bdd
je 0x4a8bbb
test eax, eax
je 0x4a8bbb
cmp eax, 0x100000
je 0x4a8b97
cmp eax, 0x200000
jne 0x4a9139
mov eax, 0xa
jmp 0x4a8b9c
mov eax, 0xd
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
mov byte [esp + 0x98], al
jmp 0x4a8c07
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 2
mov word [esp + 0x98], 0xa0d
jmp 0x4a8c07
cmp eax, 0x400000
je 0x4a8bfc
cmp eax, 0x500000
jne 0x4a9139
mov dword [esp + 0x90], 2
jmp 0x4a8c07
mov dword [esp + 0x90], 1
mov ecx, ebp
mov dword [esp + 0x70], 0
lea eax, [esp + 0xa8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
lea edx, [ecx + 1]
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], 0x1000
mov dword [esp + 0x48], ebp
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8c63
sub ecx, edx
mov dword [esp + 0x84], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0
lea eax, [ecx + ebp]
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], eax
mov ecx, edi
lea eax, [esi + ebp]
mov byte [esp + 0xa8], 0x7d
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004a81a0
mov ebx, dword [esp + 0x44]
add esp, 0x2c
test ebx, ebx
jne 0x4a913e
mov esi, dword [esp + 0x10]
cmp esi, 0x10000
jle 0x4a8d13
mov ebx, 0x14
jmp 0x4a913e
mov eax, dword [esp + 0x60]
lea edi, [esi + 0x28]
imul eax, dword [esp + 0x5c]
add edi, eax
push edi
call fcn.004b2c3e
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4a8d3c
mov ebp, dword [esp + 0x28]
lea ebx, [eax + 0x15]
jmp 0x4a913e
mov dword [ebp], 0x50435245
mov dword [ebp + 4], edi
mov eax, dword [esp + 0x7c]
mov dword [ebp + 8], eax
movzx eax, word [esp + 0x80]
mov word [ebp + 0xc], ax
xor eax, eax
mov word [ebp + 0xe], ax
mov dword [ebp + 0x14], eax
mov eax, 0x28
mov word [ebp + 0x18], ax
movzx eax, word [esp + 0x60]
mov word [ebp + 0x1a], ax
movzx eax, word [esp + 0x5c]
mov word [ebp + 0x1c], ax
xor eax, eax
mov word [ebp + 0x1e], ax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
movzx ecx, word [ebp + 0x18]
add ecx, ebp
mov dword [esp + 0x58], ecx
movzx eax, word [ebp + 0x1c]
movzx edx, word [ebp + 0x1a]
imul edx, eax
mov eax, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x50], edx
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x94], 0
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0xac], 0
push eax
mov dword [esp + 0xb4], 0
lea eax, [esp + 0x44]
mov dword [esp + 0x78], 0
mov byte [edx], 0x7d
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
push eax
call fcn.004a81a0
movzx eax, word [esp + 0x94]
or ecx, 0xffffffff
mov ebx, dword [esp + 0x44]
add esp, 0x2c
mov word [ebp + 0x10], ax
movzx eax, word [esp + 0x70]
mov word [ebp + 0x12], ax
mov eax, dword [esp + 0x80]
or eax, 1
mov word [ebp + 0xc], ax
cmp dword [esp + 0x88], 0
mov eax, dword [esp + 0x20]
cmovne eax, ecx
mov dword [esp + 0xa4], eax
test ebx, ebx
jne 0x4a8e8e
mov eax, dword [esp + 0x1c]
mov ecx, 0x16
cmp byte [eax], bl
cmovne ebx, ecx
mov eax, dword [esp + 0x14]
mov ecx, 0x17
mov edx, dword [esp + 0x10]
mov byte [eax], 0
sub eax, edx
mov edi, dword [esp + 0x40]
inc eax
cmp eax, esi
mov eax, dword [esp + 0x54]
cmovg ebx, ecx
mov dword [esp + 0x14], ebx
cmp eax, edi
jbe 0x4a8f5e
or esi, 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], esi
test ebx, ebx
jne 0x4a8f5e
cmp eax, edi
jbe 0x4a8f5e
sub eax, 2
mov dword [esp + 0x54], eax
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
movzx esi, byte [ecx + edx]
lea eax, [ecx + edx]
inc ecx
mov dword [esp + 0x24], eax
add ecx, edx
shl esi, 8
mov dword [esp + 0xa0], ecx
movzx eax, byte [ecx]
or esi, eax
cmp esi, dword [esp + 0x20]
je 0x4a8f28
push esi
mov ecx, edx
call fcn.004a3ae0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
jmp 0x4a8f2c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a8f55
mov esi, dword [esp + 0x24]
mov ecx, eax
sub ecx, edx
sar ecx, 8
sub al, dl
mov byte [esi], cl
mov ecx, dword [esp + 0xa0]
mov byte [ecx], al
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x40]
jmp 0x4a8ed1
mov ebx, 0x35
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x64], 0x1000
jle 0x4a8f71
push edi
call fcn.004b2343
add esp, 4
test ebx, ebx
jne 0x4a8f89
mov ax, word [ebp + 0x12]
mov ecx, 0xf
cmp ax, word [ebp + 0x10]
cmova ebx, ecx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x8c], 0
mov esi, dword [esp + 0x10]
je 0x4a901c
push 0xffffffffffffffff
mov ecx, esi
call fcn.004a3ae0
mov edi, eax
add esp, 4
test edi, edi
je 0x4a901c
nop dword [eax]
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x4a9001
movzx esi, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, eax
lea eax, [esp + 0x30]
push eax
push 1
mov bl, byte [esi + edi - 3]
mov byte [esi + edi - 3], cl
mov ecx, edi
mov edx, dword [ebp + 8]
shr edx, 0xb
and edx, 1
call fcn.004a37c0
add esp, 8
mov byte [esi + edi - 3], bl
test eax, eax
js 0x4a9032
mov ecx, eax
mov byte [edi + 2], al
sar ecx, 8
mov byte [edi + 1], cl
push 0xffffffffffffffff
lea ecx, [edi + 3]
call fcn.004a3ae0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a8fb0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x4a905e
push ebp
call fcn.004b2343
mov ebp, dword [esp + 0x2c]
add esp, 4
jmp 0x4a913e
cmp eax, 0xfffffffe
jne 0x4a904c
push ebp
lea ebx, [eax + 0x26]
call fcn.004b2343
mov ebp, dword [esp + 0x2c]
add esp, 4
jmp 0x4a913e
cmp eax, 0xfffffffc
mov ebx, 0x19
mov ecx, 0x46
cmove ebx, ecx
jmp 0x4a9018
mov eax, dword [ebp + 8]
mov ebx, eax
test al, 0x10
jne 0x4a90ea
push dword [esp + 0x74]
xor edx, edx
mov ecx, esi
call fcn.004a8550
add esp, 4
test eax, eax
je 0x4a9087
or ebx, 0x10
mov dword [ebp + 8], ebx
jmp 0x4a90ea
mov eax, dword [esp + 0x2c]
test eax, eax
jns 0x4a90c0
xor edx, edx
mov ecx, esi
call fcn.004a87b0
test eax, eax
jns 0x4a90c0
push dword [esp + 0x74]
mov edi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
mov ebx, edi
call fcn.004a8650
add esp, 4
test eax, eax
je 0x4a90ea
mov eax, 0x100
or word [ebp + 0xc], ax
jmp 0x4a90ea
movzx edx, al
mov word [ebp + 0x14], dx
test eax, 0x10000000
je 0x4a90e2
mov eax, dword [esp + 0x34]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x4a90e2
or word [ebp + 0xc], 0x20
or word [ebp + 0xc], 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xa4]
test eax, eax
js 0x4a912c
test bl, 0x10
je 0x4a9101
test eax, 0x20000000
je 0x4a912c
movzx edx, al
mov word [ebp + 0x16], dx
test eax, 0x10000000
je 0x4a9127
mov eax, dword [esp + 0x34]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x4a9127
mov eax, 0x80
or word [ebp + 0xc], ax
or word [ebp + 0xc], 0x40
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x109c
ret
mov ebx, 0x38
mov ecx, dword [esp + 0x10b8]
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov dword [ecx], eax
mov edx, ebx
mov ecx, str.no_error
test edx, edx
jle 0x4a9177
mov ecx, str.no_error
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a9160
cmp byte [ecx], al
je 0x4a9172
dec edx
test edx, edx
jg 0x4a9160
jmp 0x4a9177
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 0x4a918d
mov dword [eax], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x109c
ret