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

Disassembly:
mov eax, 0x1094
call fcn.004c1c60
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 0x4bae09
mov eax, dword [esp + 0x10a8]
test eax, eax
je 0x4bb615
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 0x4bae18
mov dword [eax], edi
mov eax, dword [esp + 0x10b0]
test eax, eax
jne 0x4bae2f
mov ebx, 0x10
mov edx, ebx
jmp 0x4bb5e3
mov dword [eax], edi
mov dword [esp + 0x30], 0x4c7d60
mov dword [esp + 0x34], 0x4c7e60
mov dword [esp + 0x38], 0x4c7f60
mov dword [esp + 0x3c], 0x4c80a0
test ebx, 0xd8038580
je 0x4bae63
mov ebx, 0x11
jmp 0x4bb5c7
cmp byte [edx], 0x28
jne 0x4baffd
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 0x4baffd
push 5
push str.UTF8_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baea2
add edi, 7
add esi, 7
or ebx, 0x800
jmp 0x4bafe9
push 4
push str.UCP_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baec4
add edi, 6
add esi, 6
or ebx, 0x20000000
jmp 0x4bafe9
push 0xd
push str.NO_START_OPT_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baee6
add edi, 0xf
add esi, 0xf
or ebx, 0x4000000
jmp 0x4bafe9
push 3
push 0x4d09b0
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baf0f
mov eax, 0x100000
and ebx, 0xff8fffff
add edi, 5
add esi, 5
or ebx, eax
jmp 0x4bafe9
push 3
push 0x4d09b4
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baf38
mov eax, 0x200000
and ebx, 0xff8fffff
add edi, 5
add esi, 5
or ebx, eax
jmp 0x4bafe9
push 5
push str.CRLF_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baf61
mov eax, 0x300000
and ebx, 0xff8fffff
add edi, 7
add esi, 7
or ebx, eax
jmp 0x4bafe9
push 4
push str.ANY_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baf87
mov eax, 0x400000
and ebx, 0xff8fffff
add edi, 6
add esi, 6
or ebx, eax
jmp 0x4bafe9
push 8
push str.ANYCRLF_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4bafad
mov eax, 0x500000
and ebx, 0xff8fffff
add edi, 0xa
add esi, 0xa
or ebx, eax
jmp 0x4bafe9
push 0xc
push str.BSR_ANYCRLF_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4bafc5
mov eax, 0x800000
jmp 0x4bafdb
push 0xc
push str.BSR_UNICODE_
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4baff9
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 0x4bae75
jmp 0x4baffd
mov edx, dword [esp + 0x24]
test ebx, 0x20000000
je 0x4bb00f
mov ebx, 0x43
jmp 0x4bb5c7
mov eax, ebx
and eax, 0x1800000
cmp eax, 0x1800000
je 0x4bb5c2
mov eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x4bb08e
je 0x4bb06c
test eax, eax
je 0x4bb06c
cmp eax, 0x100000
je 0x4bb04b
cmp eax, 0x200000
jne 0x4bb5c2
mov al, 0xa
jmp 0x4bb04d
mov al, 0xd
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
mov byte [esp + 0x98], al
jmp 0x4bb0b8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 2
mov word [esp + 0x98], 0xa0d
jmp 0x4bb0b8
cmp eax, 0x400000
je 0x4bb0ad
cmp eax, 0x500000
jne 0x4bb5c2
mov dword [esp + 0x90], 2
jmp 0x4bb0b8
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 0x4bb114
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.004ba600
mov ebx, dword [esp + 0x44]
add esp, 0x2c
test ebx, ebx
jne 0x4bb5c7
mov edi, dword [esp + 0x10]
cmp edi, 0x10000
jle 0x4bb1c4
mov ebx, 0x14
jmp 0x4bb5c7
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 0x4bb1ea
lea ebx, [eax + 0x15]
jmp 0x4bb5c7
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.004ba600
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 0x4bb33d
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 0x4bb3f2
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x18], 0
test ebx, ebx
jne 0x4bb3f2
nop dword [eax]
cmp eax, ecx
jbe 0x4bb3f2
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 0x4bb3c5
push esi
mov ecx, edx
call fcn.004b6010
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
jmp 0x4bb3c9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bb3e5
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 0x4bb380
mov ecx, dword [esp + 0x40]
mov ebx, 0x35
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x64], 0x1000
jle 0x4bb406
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebx, ebx
jne 0x4bb41e
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 0x4bb4ae
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b6010
mov edi, eax
add esp, 4
test edi, edi
je 0x4bb4ae
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x4bb493
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.004b5cf0
add esp, 8
mov byte [esi + edi - 3], bl
test eax, eax
js 0x4bb4c1
mov ecx, eax
mov byte [edi + 2], al
sar ecx, 8
mov byte [edi + 1], cl
push 0xffffffffffffffff
lea ecx, [edi + 3]
call fcn.004b6010
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bb442
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x4bb4ea
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4bb5c7
cmp eax, 0xfffffffe
jne 0x4bb4d8
push ebp
lea ebx, [eax + 0x26]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4bb5c7
cmp eax, 0xfffffffc
mov ebx, 0x19
mov ecx, 0x46
cmove ebx, ecx
jmp 0x4bb4aa
mov eax, dword [ebp + 8]
mov ebx, eax
test al, 0x10
jne 0x4bb576
push dword [esp + 0x74]
xor edx, edx
mov ecx, esi
call fcn.004ba9e0
add esp, 4
test eax, eax
je 0x4bb513
or ebx, 0x10
mov dword [ebp + 8], ebx
jmp 0x4bb576
mov eax, dword [esp + 0x2c]
test eax, eax
jns 0x4bb54c
xor edx, edx
mov ecx, esi
call fcn.004bac60
test eax, eax
jns 0x4bb54c
push dword [esp + 0x74]
mov edi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
mov ebx, edi
call fcn.004baae0
add esp, 4
test eax, eax
je 0x4bb576
mov eax, 0x100
or word [ebp + 0xc], ax
jmp 0x4bb576
movzx ecx, al
mov word [ebp + 0x14], cx
test eax, 0x10000000
je 0x4bb56e
mov edx, dword [esp + 0x34]
mov eax, ecx
movzx eax, byte [eax + edx]
cmp ax, cx
je 0x4bb56e
or word [ebp + 0xc], 0x20
or word [ebp + 0xc], 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
test eax, eax
js 0x4bb5b5
test bl, 0x10
je 0x4bb58a
test eax, 0x20000000
je 0x4bb5b5
movzx ecx, al
mov word [ebp + 0x16], cx
test eax, 0x10000000
je 0x4bb5b0
mov edx, dword [esp + 0x34]
mov eax, ecx
movzx eax, byte [eax + edx]
cmp ax, cx
je 0x4bb5b0
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 0x4bb5ff
mov ecx, str.no_error
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bb5e8
cmp byte [ecx], al
je 0x4bb5fa
dec edx
test edx, edx
jg 0x4bb5e8
jmp 0x4bb5ff
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 0x4bb615
mov dword [eax], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1094
ret