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

Disassembly:
mov eax, 0x109c
call fcn.004d2340
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x10b0]
xor eax, eax
mov dword [esp + 0x28], esi
mov ebp, edx
mov dword [esp + 0x18], esi
push edi
test ecx, ecx
jne 0x4ac091
mov eax, dword [esp + 0x10b0]
test eax, eax
je 0x4acac4
mov dword [eax], 0x63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x109c
ret
mov dword [ecx], eax
mov ecx, dword [esp + 0x10b0]
test ecx, ecx
je 0x4ac0a0
mov dword [ecx], eax
mov edx, dword [esp + 0x10b8]
test edx, edx
jne 0x4ac0b7
mov esi, 0x10
mov edx, esi
jmp 0x4aca92
mov dword [edx], eax
mov dword [esp + 0x30], 0x4de9e8
mov dword [esp + 0x34], 0x4deae8
mov dword [esp + 0x38], 0x4debe8
mov dword [esp + 0x3c], 0x4ded28
test ebp, 0xd8038580
je 0x4ac0eb
mov esi, 0x11
jmp 0x4aca74
cmp word [esi], 0x28
jne 0x4ac454
mov ebx, 4
lea edi, [esi + 4]
nop dword [eax]
cmp word [esi + eax*2 + 2], 0x2a
jne 0x4ac454
mov esi, 6
mov dword [esp + 0x10], str.UTF16_
mov ecx, edi
nop dword [eax + eax]
movzx edx, word [ecx]
dec esi
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac157
mov ecx, dword [esp + 0x18]
test esi, esi
jne 0x4ac120
add eax, 8
add ebx, 0x10
add edi, 0x10
or ebp, 0x800
jmp 0x4ac43f
mov esi, dword [esp + 0x2c]
mov ecx, 4
add esi, ebx
mov dword [esp + 0x10], str.UCP_
mov dword [esp + 0x14], esi
nop
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac1af
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac170
add eax, 6
add ebx, 0xc
add edi, 0xc
or ebp, 0x20000000
jmp 0x4ac43f
mov ecx, 0xd
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.NO_START_OPT_
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac1ff
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac1c0
add eax, 0xf
add ebx, 0x1e
add edi, 0x1e
or ebp, 0x4000000
jmp 0x4ac43f
mov ecx, 3
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x4fd4a0
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac256
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac210
mov ecx, 0x100000
and ebp, 0xff8fffff
add eax, 5
add ebx, 0xa
add edi, 0xa
or ebp, ecx
jmp 0x4ac43f
mov ecx, 3
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x4fd4a4
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac2ad
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac267
mov ecx, 0x200000
and ebp, 0xff8fffff
add eax, 5
add ebx, 0xa
add edi, 0xa
or ebp, ecx
jmp 0x4ac43f
mov ecx, 5
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.CRLF_
nop
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac306
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac2c0
mov ecx, 0x300000
and ebp, 0xff8fffff
add eax, 7
add ebx, 0xe
add edi, 0xe
or ebp, ecx
jmp 0x4ac43f
mov ecx, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.ANY_
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac35d
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac317
mov ecx, 0x400000
and ebp, 0xff8fffff
add eax, 6
add ebx, 0xc
add edi, 0xc
or ebp, ecx
jmp 0x4ac43f
mov ecx, 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.ANYCRLF_
nop
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac3b6
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac370
mov ecx, 0x500000
and ebp, 0xff8fffff
add eax, 0xa
add ebx, 0x14
add edi, 0x14
or ebp, ecx
jmp 0x4ac43f
mov ecx, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.BSR_ANYCRLF_
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac3f9
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac3c7
mov ecx, 0x800000
jmp 0x4ac42e
mov ecx, 0xc
mov dword [esp + 0x10], str.BSR_UNICODE_
movzx edx, word [esi]
lea esi, [esi + 2]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4ac450
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ac406
mov ecx, 0x1000000
and ebp, 0xfe7fffff
add edi, 0x1c
or ebp, ecx
add ebx, 0x1c
add eax, 0xe
mov esi, dword [esp + 0x2c]
cmp word [esi + eax*2], 0x28
je 0x4ac100
jmp 0x4ac454
mov esi, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ecx, ebp
and ecx, 0x1800000
cmp ecx, 0x1800000
je 0x4aca6f
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x4ac4e7
je 0x4ac4c4
test ecx, ecx
je 0x4ac4c4
cmp ecx, 0x100000
je 0x4ac49f
cmp ecx, 0x200000
jne 0x4aca6f
mov ecx, 0xa
jmp 0x4ac4a4
mov ecx, 0xd
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
mov word [esp + 0x98], cx
jmp 0x4ac513
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 2
mov dword [esp + 0x98], 0xa000d
jmp 0x4ac513
cmp ecx, 0x400000
je 0x4ac508
cmp ecx, 0x500000
jne 0x4aca6f
mov dword [esp + 0x90], 2
jmp 0x4ac513
mov dword [esp + 0x90], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x70], 0
xor edx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], ecx
mov ecx, esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0x800
mov dword [esp + 0x48], esi
cmp word [esi], dx
je 0x4ac57d
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x4ac573
lea eax, [esi + eax*2]
mov dword [esp + 0x84], 0
mov dword [esp + 0x28], eax
lea ecx, [esi + edx*2]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xa8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], eax
mov ecx, ebp
mov eax, 0x7d
mov dword [esp + 0x78], 0
mov word [esp + 0xa8], ax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x80], ebp
push eax
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x8c], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x60], 0
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004ab8b0
mov esi, dword [esp + 0x40]
add esp, 0x2c
test esi, esi
jne 0x4aca74
mov ebp, dword [esp + 0x20]
cmp ebp, 0x10000
jle 0x4ac62c
mov esi, 0x14
jmp 0x4aca74
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x5c]
add eax, ebp
lea esi, [eax*2 + 0x28]
push esi
call fcn.004bb7a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ac655
lea esi, [eax + 0x15]
jmp 0x4aca74
mov dword [ebx], 0x50435245
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x7c]
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x80]
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 + 0x60]
mov word [ebx + 0x1a], ax
movzx eax, word [esp + 0x5c]
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 + 0x68]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
movzx eax, word [ebx + 0x18]
push 0
lea edx, [ebx + eax*2]
mov dword [esp + 0x5c], edx
movzx eax, word [ebx + 0x1c]
movzx ecx, word [ebx + 0x1a]
imul ecx, eax
mov eax, dword [esp + 0x44]
lea edi, [edx + ecx*2]
mov dword [esp + 0x58], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, 0x7d
mov dword [esp + 0x48], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x54], 0
mov word [edi], ax
lea eax, [esp + 0x34]
push eax
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edi
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
mov dword [esp + 0x34], edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004ab8b0
movzx eax, word [esp + 0x94]
or ecx, 0xffffffff
mov esi, dword [esp + 0x40]
add esp, 0x2c
mov word [ebx + 0x10], ax
movzx eax, word [esp + 0x70]
mov word [ebx + 0x12], ax
mov eax, dword [esp + 0x80]
or eax, 2
mov word [ebx + 0xc], ax
cmp dword [esp + 0x88], 0
mov eax, dword [esp + 0x24]
cmovne eax, ecx
mov dword [esp + 0xa4], eax
test esi, esi
jne 0x4ac7ae
mov eax, dword [esp + 0x1c]
mov ecx, 0x16
cmp word [eax], si
cmovne esi, ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax], cx
sub eax, edi
add eax, 2
mov ecx, 0x17
sar eax, 1
cmp eax, ebp
mov eax, dword [esp + 0x54]
cmovg esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], esi
cmp eax, ecx
jbe 0x4ac83e
xor edx, edx
mov dword [esp + 0x24], 0xffffffff
test esi, esi
jne 0x4ac83e
cmp eax, ecx
jbe 0x4ac83e
sub eax, 2
mov dword [esp + 0x54], eax
movzx eax, word [eax]
movzx ebp, word [edi + eax*2]
lea eax, [edi + eax*2]
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0x24]
je 0x4ac81e
push ebp
mov ecx, edi
call fcn.004a5e60
mov ecx, dword [esp + 0x44]
mov edx, eax
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x24], ebp
test edx, edx
je 0x4ac835
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov word [eax], cx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
jmp 0x4ac7e6
mov esi, 0x35
mov dword [esp + 0x10], esi
cmp dword [esp + 0x64], 0x800
jle 0x4ac851
push ecx
call fcn.004bb7ab
add esp, 4
test esi, esi
jne 0x4ac869
mov ax, word [ebx + 0x12]
mov ecx, 0xf
cmp ax, word [ebx + 0x10]
cmova esi, ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x8c], 0
je 0x4ac8f0
push 0xffffffffffffffff
mov ecx, edi
call fcn.004a5e60
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4ac8f0
nop dword [eax]
cmp word [ebp + 2], 0
jne 0x4ac8d5
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 + 0x30]
mov edx, dword [ebx + 8]
push eax
shr edx, 0xb
push 1
and edx, 1
call fcn.004a5b40
add esp, 8
mov word [edi + ebp - 4], si
test eax, eax
js 0x4ac902
mov word [ebp + 2], ax
push 0xffffffffffffffff
lea ecx, [ebp + 4]
call fcn.004a5e60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4ac890
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
test esi, esi
je 0x4ac92a
push ebx
call fcn.004bb7ab
add esp, 4
jmp 0x4aca74
cmp eax, 0xfffffffe
jne 0x4ac918
push ebx
lea esi, [eax + 0x26]
call fcn.004bb7ab
add esp, 4
jmp 0x4aca74
cmp eax, 0xfffffffc
mov esi, 0x19
mov ecx, 0x46
cmove esi, ecx
jmp 0x4ac8ec
mov ecx, dword [ebx + 8]
mov esi, 0x80
mov eax, ecx
test cl, 0x10
jne 0x4ac9fb
mov ebp, dword [esp + 0x74]
xor edx, edx
push ebp
mov ecx, edi
call fcn.004abc50
add esp, 4
test eax, eax
je 0x4ac960
mov eax, dword [ebx + 8]
or eax, 0x10
mov dword [ebx + 8], eax
jmp 0x4ac9fb
mov edx, dword [esp + 0x18]
test edx, edx
jns 0x4ac99c
xor edx, edx
mov ecx, edi
call fcn.004abee0
mov edx, eax
test edx, edx
jns 0x4ac99c
mov esi, dword [ebx + 8]
xor edx, edx
push ebp
mov ecx, edi
mov dword [esp + 0x2c], esi
call fcn.004abd90
add esp, 4
test eax, eax
je 0x4ac9f2
mov eax, 0x100
or word [ebx + 0xc], ax
mov eax, esi
jmp 0x4ac9f6
mov word [ebx + 0x14], dx
test edx, 0x10000000
je 0x4ac9e8
movzx ecx, dx
cmp dx, si
jae 0x4ac9bd
mov eax, dword [esp + 0x34]
movzx eax, byte [ecx + eax]
cmp ax, dx
jmp 0x4ac9e1
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4eb808]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4dee28]
cmp dword [eax*8 + 0x4ea72c], 0
je 0x4ac9e8
or word [ebx + 0xc], 0x20
or word [ebx + 0xc], 0x10
mov eax, dword [ebx + 8]
jmp 0x4ac9fb
mov eax, dword [esp + 0x28]
mov esi, 0x80
mov edx, dword [esp + 0xa4]
test edx, edx
js 0x4aca62
test al, 0x10
je 0x4aca12
test edx, 0x20000000
je 0x4aca62
mov word [ebx + 0x16], dx
test edx, 0x10000000
je 0x4aca5d
movzx ecx, dx
cmp dx, si
jae 0x4aca33
mov eax, dword [esp + 0x34]
movzx eax, byte [ecx + eax]
cmp ax, dx
jmp 0x4aca57
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4eb808]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4dee28]
cmp dword [eax*8 + 0x4ea72c], 0
je 0x4aca5d
or word [ebx + 0xc], si
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 + 0x1c]
mov ecx, dword [esp + 0x10b8]
sub eax, dword [esp + 0x2c]
sar eax, 1
mov dword [ecx], eax
mov edx, esi
mov ecx, str.no_error
test edx, edx
jle 0x4acaae
mov ecx, str.no_error
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aca97
cmp byte [ecx], al
je 0x4acaa9
dec edx
test edx, edx
jg 0x4aca97
jmp 0x4acaae
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 0x4acac4
mov dword [eax], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x109c
ret