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

Disassembly:
mov eax, 0x1094
call fcn.004b4520
mov eax, dword [esp + 0x109c]
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov dword [esp + 0x10], 1
mov edx, ecx
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x4ad6c9
mov eax, dword [esp + 0x10a8]
test eax, eax
je 0x4aded5
mov dword [eax], 0x63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1094
ret
mov dword [eax], edi
mov eax, dword [esp + 0x10a8]
test eax, eax
je 0x4ad6d8
mov dword [eax], edi
mov eax, dword [esp + 0x10b0]
test eax, eax
jne 0x4ad6ef
mov ebx, 0x10
mov edx, ebx
jmp 0x4adea3
mov dword [eax], edi
mov dword [esp + 0x30], 0x4babe0
mov dword [esp + 0x34], 0x4bace0
mov dword [esp + 0x38], 0x4bade0
mov dword [esp + 0x3c], 0x4baf20
test ebx, 0xd8038580
je 0x4ad723
mov ebx, 0x11
jmp 0x4ade87
cmp byte [edx], 0x28
jne 0x4ad8bd
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
lea esi, [edx + 2]
cmp byte [edi + edx + 1], 0x2a
jne 0x4ad8bd
push 5
push str.UTF8_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad762
add edi, 7
add esi, 7
or ebx, 0x800
jmp 0x4ad8a9
push 4
push str.UCP_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad784
add edi, 6
add esi, 6
or ebx, 0x20000000
jmp 0x4ad8a9
push 0xd
push str.NO_START_OPT_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad7a6
add edi, 0xf
add esi, 0xf
or ebx, 0x4000000
jmp 0x4ad8a9
push 3
push 0x4c2290
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad7cf
mov eax, 0x100000
and ebx, 0xff8fffff
add edi, 5
add esi, 5
or ebx, eax
jmp 0x4ad8a9
push 3
push 0x4c2294
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad7f8
mov eax, 0x200000
and ebx, 0xff8fffff
add edi, 5
add esi, 5
or ebx, eax
jmp 0x4ad8a9
push 5
push str.CRLF_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad821
mov eax, 0x300000
and ebx, 0xff8fffff
add edi, 7
add esi, 7
or ebx, eax
jmp 0x4ad8a9
push 4
push str.ANY_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad847
mov eax, 0x400000
and ebx, 0xff8fffff
add edi, 6
add esi, 6
or ebx, eax
jmp 0x4ad8a9
push 8
push str.ANYCRLF_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad86d
mov eax, 0x500000
and ebx, 0xff8fffff
add edi, 0xa
add esi, 0xa
or ebx, eax
jmp 0x4ad8a9
push 0xc
push str.BSR_ANYCRLF_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad885
mov eax, 0x800000
jmp 0x4ad89b
push 0xc
push str.BSR_UNICODE_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4ad8b9
mov eax, 0x1000000
and ebx, 0xfe7fffff
add esi, 0xe
or ebx, eax
add edi, 0xe
mov edx, dword [esp + 0x24]
cmp byte [edi + edx], 0x28
je 0x4ad735
jmp 0x4ad8bd
mov edx, dword [esp + 0x24]
test ebx, 0x20000000
je 0x4ad8cf
mov ebx, 0x43
jmp 0x4ade87
mov eax, ebx
and eax, 0x1800000
cmp eax, 0x1800000
je 0x4ade82
mov eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x4ad94e
je 0x4ad92c
test eax, eax
je 0x4ad92c
cmp eax, 0x100000
je 0x4ad90b
cmp eax, 0x200000
jne 0x4ade82
mov al, 0xa
jmp 0x4ad90d
mov al, 0xd
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
mov byte [esp + 0x98], al
jmp 0x4ad978
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 2
mov word [esp + 0x98], 0xa0d
jmp 0x4ad978
cmp eax, 0x400000
je 0x4ad96d
cmp eax, 0x500000
jne 0x4ade82
mov dword [esp + 0x90], 2
jmp 0x4ad978
mov dword [esp + 0x90], 1
mov ecx, edx
mov dword [esp + 0x70], 0
lea eax, [esp + 0xa0]
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
lea esi, [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], edx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ad9d4
sub ecx, esi
mov dword [esp + 0x84], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0
lea eax, [ecx + edx]
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], eax
mov ecx, ebx
lea eax, [edi + edx]
mov byte [esp + 0xa0], 0x7d
mov dword [esp + 0x28], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xa0]
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.004acec0
mov ebx, dword [esp + 0x44]
add esp, 0x2c
test ebx, ebx
jne 0x4ade87
mov edi, dword [esp + 0x10]
cmp edi, 0x10000
jle 0x4ada84
mov ebx, 0x14
jmp 0x4ade87
mov eax, dword [esp + 0x60]
lea esi, [edi + 0x28]
imul eax, dword [esp + 0x5c]
add esi, eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4adaaa
lea ebx, [eax + 0x15]
jmp 0x4ade87
mov eax, dword [esp + 0x7c]
lea ecx, [ebp + 0x28]
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
mov ax, word [esp + 0x5c]
movzx edx, ax
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 [ebp + 4], esi
mov si, word [esp + 0x60]
push 0
movzx eax, si
imul edx, eax
mov eax, dword [esp + 0x44]
add edx, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x54], edx
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
mov dword [ebp], 0x50435245
push eax
mov word [ebp + 0x1a], si
lea eax, [esp + 0x44]
mov dword [esp + 0xa0], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
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.004acec0
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
cmp dword [esp + 0x88], 0
mov word [ebp + 0xc], ax
mov eax, dword [esp + 0x20]
cmovne eax, ecx
mov dword [esp + 0x28], eax
test ebx, ebx
jne 0x4adbfd
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
inc eax
cmp eax, edi
mov eax, dword [esp + 0x54]
cmovg ebx, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ebx
cmp eax, ecx
jbe 0x4adcb2
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x18], 0
test ebx, ebx
jne 0x4adcb2
nop dword [eax]
cmp eax, ecx
jbe 0x4adcb2
sub eax, 2
mov dword [esp + 0x54], eax
movzx edi, byte [eax]
movzx eax, byte [eax + 1]
shl edi, 8
or edi, eax
movzx eax, byte [edi + edx + 1]
add edi, edx
movzx esi, byte [edi]
shl esi, 8
or esi, eax
cmp esi, dword [esp + 0x20]
je 0x4adc85
push esi
mov ecx, edx
call fcn.004a88d0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
jmp 0x4adc89
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4adca5
mov ecx, eax
sub ecx, edx
sar ecx, 8
sub al, dl
mov byte [edi], cl
mov byte [edi + 1], al
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
jmp 0x4adc40
mov ecx, dword [esp + 0x40]
mov ebx, 0x35
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x64], 0x1000
jle 0x4adcc6
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebx, ebx
jne 0x4adcde
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 0x4add6e
push 0xffffffffffffffff
mov ecx, esi
call fcn.004a88d0
mov edi, eax
add esp, 4
test edi, edi
je 0x4add6e
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x4add53
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.004a85b0
add esp, 8
mov byte [esi + edi - 3], bl
test eax, eax
js 0x4add81
mov ecx, eax
mov byte [edi + 2], al
sar ecx, 8
mov byte [edi + 1], cl
push 0xffffffffffffffff
lea ecx, [edi + 3]
call fcn.004a88d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4add02
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x4addaa
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4ade87
cmp eax, 0xfffffffe
jne 0x4add98
push ebp
lea ebx, [eax + 0x26]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4ade87
cmp eax, 0xfffffffc
mov ebx, 0x19
mov ecx, 0x46
cmove ebx, ecx
jmp 0x4add6a
mov eax, dword [ebp + 8]
mov ebx, eax
test al, 0x10
jne 0x4ade36
push dword [esp + 0x74]
xor edx, edx
mov ecx, esi
call fcn.004ad2a0
add esp, 4
test eax, eax
je 0x4addd3
or ebx, 0x10
mov dword [ebp + 8], ebx
jmp 0x4ade36
mov eax, dword [esp + 0x2c]
test eax, eax
jns 0x4ade0c
xor edx, edx
mov ecx, esi
call fcn.004ad520
test eax, eax
jns 0x4ade0c
push dword [esp + 0x74]
mov edi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
mov ebx, edi
call fcn.004ad3a0
add esp, 4
test eax, eax
je 0x4ade36
mov eax, 0x100
or word [ebp + 0xc], ax
jmp 0x4ade36
movzx ecx, al
mov word [ebp + 0x14], cx
test eax, 0x10000000
je 0x4ade2e
mov edx, dword [esp + 0x34]
mov eax, ecx
movzx eax, byte [eax + edx]
cmp ax, cx
je 0x4ade2e
or word [ebp + 0xc], 0x20
or word [ebp + 0xc], 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
test eax, eax
js 0x4ade75
test bl, 0x10
je 0x4ade4a
test eax, 0x20000000
je 0x4ade75
movzx ecx, al
mov word [ebp + 0x16], cx
test eax, 0x10000000
je 0x4ade70
mov edx, dword [esp + 0x34]
mov eax, ecx
movzx eax, byte [eax + edx]
cmp ax, cx
je 0x4ade70
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, 0x1094
ret
mov ebx, 0x38
mov ecx, dword [esp + 0x10b0]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
mov dword [ecx], eax
mov edx, ebx
mov ecx, str.no_error
test edx, edx
jle 0x4adebf
mov ecx, str.no_error
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4adea8
cmp byte [ecx], al
je 0x4adeba
dec edx
test edx, edx
jg 0x4adea8
jmp 0x4adebf
mov ecx, str.Error_text_not_found__please_report_
mov eax, dword [esp + 0x10ac]
mov dword [eax], ecx
mov eax, dword [esp + 0x10a8]
test eax, eax
je 0x4aded5
mov dword [eax], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1094
ret