Function at 0x4b0340
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 1
push 0
push 0
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4b0376
jmp 0x4b0763
mov dword [0x7d2024], 0
mov dword [0x7d2028], 0
mov eax, dword [0x7d2024]
push eax
call fcn.004b02b0
add esp, 4
test eax, eax
jne 0x4b03a1
jmp 0x4b0763
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4b03b5
jmp 0x4b0763
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
lea eax, [edx + edx + 2]
call fcn.00708b30
mov dword [ebp - 0x44], esp
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4b06c2
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x20
je 0x4b0416
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 9
jne 0x4b0421
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x4b03eb
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4b05cc
cmp dword [ebp - 0x18], 0
jne 0x4b045f
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x20
je 0x4b05cc
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 9
je 0x4b05cc
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x22
je 0x4b0548
cmp dword [ebp - 0x3c], 0x5c
je 0x4b047d
jmp 0x4b05a9
mov edx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x4b0499
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
jmp 0x4b0483
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x4b0514
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x30]
sar eax, 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x4b04bf
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jle 0x4b04db
mov eax, 0x5c
mov ecx, dword [ebp - 0xc]
mov word [ecx], ax
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
jmp 0x4b04b6
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x30]
sar eax, 1
and eax, reloc.WS2_32.dll_accept
jns 0x4b04ef
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x4b0512
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
jmp 0x4b0546
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x30]
sar eax, 1
mov dword [ebp - 0x34], eax
jmp 0x4b052a
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
jle 0x4b0546
mov edx, 0x5c
mov eax, dword [ebp - 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x4b0521
jmp 0x4b05c7
cmp dword [ebp - 0x18], 0
je 0x4b0582
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx]
cmp ecx, 0x22
jne 0x4b0582
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x4b059e
cmp dword [ebp - 0x18], 0
jne 0x4b0591
mov dword [ebp - 0x40], 1
jmp 0x4b0598
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
jmp 0x4b05c7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
jmp 0x4b042d
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x1c]
sar edx, 1
mov dword [ebp - 0x10], edx
je 0x4b05f1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004affc0
add esp, 8
test eax, eax
jne 0x4b06bd
mov edx, dword [0x7d2024]
add edx, 1
push edx
call fcn.004b02b0
add esp, 4
test eax, eax
jne 0x4b0613
mov dword [ebp - 0x38], 0
jmp 0x4b06c2
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
jle 0x4b064b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x4b064b
jmp 0x4b03eb
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4b066d
mov dword [ebp - 0x38], 0
jmp 0x4b06c2
cmp dword [ebp - 0x10], 0
jle 0x4b0694
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
mov byte [ecx], 0
mov edx, dword [0x7d2024]
mov eax, dword [0x7d2028]
mov ecx, dword [ebp - 0x20]
mov dword [eax + edx*4], ecx
mov edx, dword [0x7d2024]
add edx, 1
mov dword [0x7d2024], edx
jmp 0x4b03eb
cmp dword [ebp - 0x38], 0
je 0x4b0702
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [0x7d2020], eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov eax, dword [ebp + 8]
mov ecx, dword [0x7d2024]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [0x7d2028]
mov dword [edx], eax
push 0x4aff50
call fcn.00708b0d
add esp, 4
jmp 0x4b0763
cmp dword [0x7d2028], 0
je 0x4b0763
mov dword [ebp - 0x24], 0
jmp 0x4b071d
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x7d2024]
jge 0x4b0740
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x7d2028]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4b0714
mov eax, dword [0x7d2028]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [0x7d2024], 0
mov dword [0x7d2028], 0
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret