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

Disassembly:
mov eax, 0x109c
call fcn.004bdab0
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x10b0]
xor eax, eax
mov dword [esp + 0x2c], esi
mov ebp, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], esi
push edi
test ecx, ecx
jne 0x4b26a9
mov eax, dword [esp + 0x10b0]
test eax, eax
je 0x4b30fd
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 0x4b26b8
mov dword [ecx], eax
mov edx, dword [esp + 0x10b8]
test edx, edx
jne 0x4b26cf
mov esi, 0x10
mov edx, esi
jmp 0x4b30c9
mov dword [edx], eax
mov dword [esp + 0x38], 0x4c4d38
mov dword [esp + 0x3c], 0x4c4e38
mov dword [esp + 0x40], 0x4c4f38
mov dword [esp + 0x44], 0x4c5078
test ebp, 0xd8038580
je 0x4b2703
mov esi, 0x11
jmp 0x4b30ab
cmp word [esi], 0x28
jne 0x4b2a74
mov ebx, 4
lea edi, [esi + 4]
nop word [eax + eax]
cmp word [esi + eax*2 + 2], 0x2a
jne 0x4b2a74
mov esi, 6
mov dword [esp + 0x14], str.UTF16_
mov ecx, edi
nop dword [eax + eax]
movzx edx, word [ecx]
dec esi
add ecx, 2
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b2777
mov ecx, dword [esp + 0x1c]
test esi, esi
jne 0x4b2740
add eax, 8
add ebx, 0x10
add edi, 0x10
or ebp, 0x800
jmp 0x4b2a5f
mov esi, dword [esp + 0x30]
mov ecx, 4
add esi, ebx
mov dword [esp + 0x14], str.UCP_
mov dword [esp + 0x18], esi
nop
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b27cf
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b2790
add eax, 6
add ebx, 0xc
add edi, 0xc
or ebp, 0x20000000
jmp 0x4b2a5f
mov ecx, 0xd
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.NO_START_OPT_
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b281f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b27e0
add eax, 0xf
add ebx, 0x1e
add edi, 0x1e
or ebp, 0x4000000
jmp 0x4b2a5f
mov ecx, 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x4e1098
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b2876
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b2830
mov ecx, 0x100000
and ebp, 0xff8fffff
add eax, 5
add ebx, 0xa
add edi, 0xa
or ebp, ecx
jmp 0x4b2a5f
mov ecx, 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x4e109c
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b28cd
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b2887
mov ecx, 0x200000
and ebp, 0xff8fffff
add eax, 5
add ebx, 0xa
add edi, 0xa
or ebp, ecx
jmp 0x4b2a5f
mov ecx, 5
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.CRLF_
nop
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b2926
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b28e0
mov ecx, 0x300000
and ebp, 0xff8fffff
add eax, 7
add ebx, 0xe
add edi, 0xe
or ebp, ecx
jmp 0x4b2a5f
mov ecx, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.ANY_
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b297d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b2937
mov ecx, 0x400000
and ebp, 0xff8fffff
add eax, 6
add ebx, 0xc
add edi, 0xc
or ebp, ecx
jmp 0x4b2a5f
mov ecx, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.ANYCRLF_
nop
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b29d6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b2990
mov ecx, str.eZi
and ebp, 0xff8fffff
add eax, 0xa
add ebx, 0x14
add edi, 0x14
or ebp, ecx
jmp 0x4b2a5f
mov ecx, 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.BSR_ANYCRLF_
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b2a19
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b29e7
mov ecx, 0x800000
jmp 0x4b2a4e
mov ecx, 0xc
mov dword [esp + 0x14], str.BSR_UNICODE_
movzx edx, word [esi]
lea esi, [esi + 2]
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4b2a70
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b2a26
mov ecx, 0x1000000
and ebp, 0xfe7fffff
add edi, 0x1c
or ebp, ecx
add ebx, 0x1c
add eax, 0xe
mov esi, dword [esp + 0x30]
cmp word [esi + eax*2], 0x28
je 0x4b2720
jmp 0x4b2a74
mov esi, dword [esp + 0x30]
mov ecx, ebp
and ecx, 0x1800000
cmp ecx, 0x1800000
je 0x4b30a6
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x4b2b01
je 0x4b2ade
test ecx, ecx
je 0x4b2ade
cmp ecx, 0x100000
je 0x4b2ab9
cmp ecx, 0x200000
jne 0x4b30a6
mov ecx, 0xa
jmp 0x4b2abe
mov ecx, 0xd
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], cx
jmp 0x4b2b2d
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 2
mov dword [esp + 0xa0], 0xa000d
jmp 0x4b2b2d
cmp ecx, 0x400000
je 0x4b2b22
cmp ecx, str.eZi
jne 0x4b30a6
mov dword [esp + 0x98], 2
jmp 0x4b2b2d
mov dword [esp + 0x98], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x78], 0
xor edx, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], ecx
mov ecx, esi
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], esi
cmp word [esi], dx
je 0x4b2b9a
nop dword [eax]
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x4b2b90
lea eax, [esi + eax*2]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x28], eax
lea ecx, [esi + edx*2]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0xa8]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], eax
mov ecx, ebp
mov eax, 0x7d
mov dword [esp + 0x80], 0
mov word [esp + 0xa8], ax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x88], ebp
push eax
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x94], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x68], 0
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b1e90
mov esi, dword [esp + 0x58]
add esp, 0x2c
test esi, esi
jne 0x4b30ab
mov edi, dword [esp + 0x34]
cmp edi, 0x10000
jle 0x4b2c4c
mov esi, 0x14
jmp 0x4b30ab
mov eax, dword [esp + 0x68]
imul eax, dword [esp + 0x64]
add eax, edi
lea esi, [eax*2 + 0x28]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4b2c76
lea esi, [eax + 0x15]
jmp 0x4b30ab
mov eax, dword [esp + 0x84]
lea edx, [ebx + 0x28]
mov cx, word [esp + 0x68]
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
mov ax, word [esp + 0x64]
mov word [ebx + 0x1c], ax
mov word [ebx + 0x1a], cx
mov dword [ebx + 4], esi
movzx esi, 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 eax, dword [esp + 0x48]
movzx ecx, cx
imul ecx, esi
mov dword [esp + 0x5c], eax
lea ebp, [edx + ecx*2]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, 0x7d
push 0
mov dword [esp + 0x64], edx
lea edx, [esp + 0x18]
mov dword [ebx], 0x50435245
mov dword [esp + 0x84], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x5c], 0
mov word [ebp], ax
lea eax, [esp + 0x3c]
push eax
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x2c]
push 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], ebp
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x38], ebp
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b1e90
movzx eax, word [esp + 0x9c]
or ecx, 0xffffffff
mov esi, dword [esp + 0x58]
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
cmp dword [esp + 0x90], 0
mov word [ebx + 0xc], ax
mov eax, dword [esp + 0x24]
cmovne eax, ecx
mov dword [esp + 0x34], eax
test esi, esi
jne 0x4b2dcd
mov eax, dword [esp + 0x20]
mov ecx, 0x16
cmp word [eax], si
cmovne esi, ecx
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax], cx
sub eax, ebp
add eax, 2
mov ecx, 0x17
sar eax, 1
cmp eax, edi
mov eax, dword [esp + 0x5c]
cmovg esi, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], esi
cmp eax, ecx
jbe 0x4b2e6d
xor edx, edx
mov dword [esp + 0x24], 0xffffffff
test esi, esi
jne 0x4b2e6d
nop dword [eax]
cmp eax, ecx
jbe 0x4b2e6d
sub eax, 2
mov dword [esp + 0x5c], eax
movzx eax, word [eax]
lea eax, [eax*2]
add eax, ebp
mov dword [esp + 0x28], eax
movzx edi, word [eax]
cmp edi, dword [esp + 0x24]
je 0x4b2e4d
push edi
mov ecx, ebp
call fcn.004abd60
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x24], edi
test edx, edx
je 0x4b2e64
mov ecx, edx
sub ecx, ebp
sar ecx, 1
mov word [eax], cx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
jmp 0x4b2e10
mov esi, 0x35
mov dword [esp + 0x14], esi
cmp dword [esp + 0x6c], 0x800
jle 0x4b2e81
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
jne 0x4b2e99
mov ax, word [ebx + 0x12]
mov ecx, 0xf
cmp ax, word [ebx + 0x10]
cmova esi, ecx
mov dword [esp + 0x14], esi
cmp dword [esp + 0x94], 0
je 0x4b2f20
push 0xffffffffffffffff
mov ecx, ebp
call fcn.004abd60
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4b2f1c
nop dword [eax]
cmp word [ebp + 2], 0
jne 0x4b2f05
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.004aba40
add esp, 8
mov word [edi + ebp - 4], si
test eax, eax
js 0x4b2f33
mov word [ebp + 2], ax
push 0xffffffffffffffff
lea ecx, [ebp + 4]
call fcn.004abd60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4b2ec0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test esi, esi
je 0x4b2f5c
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4b30ab
cmp eax, 0xfffffffe
jne 0x4b2f4a
push ebx
lea esi, [eax + 0x26]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4b30ab
cmp eax, 0xfffffffc
mov esi, 0x19
mov ecx, 0x46
cmove esi, ecx
jmp 0x4b2f1c
mov eax, dword [ebx + 8]
mov edx, 0x80
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
test al, 0x10
jne 0x4b2f94
mov esi, dword [esp + 0x7c]
xor edx, edx
push esi
mov ecx, ebp
call fcn.004b2250
add esp, 4
test eax, eax
je 0x4b2fda
mov eax, dword [esp + 0x28]
or eax, 0x10
mov dword [ebx + 8], eax
mov edx, 0x80
mov ecx, dword [esp + 0x34]
test ecx, ecx
js 0x4b3099
test byte [ebx + 8], 0x10
je 0x4b2fb2
test ecx, 0x20000000
je 0x4b3099
mov word [ebx + 0x16], cx
test ecx, 0x10000000
je 0x4b3094
cmp cx, dx
jae 0x4b3067
movzx eax, cx
movzx eax, byte [eax + edi]
cmp ax, cx
jmp 0x4b308e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jns 0x4b300d
xor edx, edx
mov ecx, ebp
call fcn.004b24f0
mov ecx, eax
test ecx, ecx
jns 0x4b300d
push esi
xor edx, edx
mov ecx, ebp
call fcn.004b2390
add esp, 4
test eax, eax
je 0x4b2f8f
mov eax, 0x100
or word [ebx + 0xc], ax
jmp 0x4b2f8f
mov word [ebx + 0x14], cx
mov edx, 0x80
test ecx, 0x10000000
je 0x4b305d
cmp cx, dx
jae 0x4b302f
movzx eax, cx
movzx eax, byte [eax + edi]
cmp ax, cx
jmp 0x4b3056
movzx ecx, cx
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4d1b58]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4c5178]
cmp dword [eax*8 + 0x4d0a7c], 0
je 0x4b305d
or word [ebx + 0xc], 0x20
or word [ebx + 0xc], 0x10
jmp 0x4b2f94
movzx ecx, cx
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4d1b58]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4c5178]
cmp dword [eax*8 + 0x4d0a7c], 0
je 0x4b3094
or word [ebx + 0xc], dx
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 + 0x20]
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 edx, edx
jle 0x4b30e7
mov ecx, str.no_error
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b30d0
cmp byte [ecx], al
je 0x4b30e2
dec edx
test edx, edx
jg 0x4b30d0
jmp 0x4b30e7
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 0x4b30fd
mov dword [eax], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x109c
ret