Function at 0x4bf9a0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x19c
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
mov ebx, dword [esp + 0x1a8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b0]
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
call fcn.004a4950
push ebx
push edi
mov dword [esp + 0x3c], eax
call fcn.004a4920
mov dword [esp + 0x2c], 0
mov edx, eax
mov eax, dword [esi + 0x24]
xor ebx, ebx
mov esi, dword [esp + 0x3c]
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x4c], eax
cmp byte [esi + 0x39], bl
je 0x4bfa4e
mov cl, byte [eax + 0x48]
cmp byte [edx + 0x63], bl
je 0x4bfa1d
test cl, cl
mov dword [esp + 0x28], 0x1820
mov eax, 0x1808
cmove eax, dword [esp + 0x28]
jmp 0x4bfa53
cmp byte [edx + 0x65], bl
je 0x4bfa38
test cl, cl
mov dword [esp + 0x28], 0x1a20
mov eax, 0x1a08
cmove eax, dword [esp + 0x28]
jmp 0x4bfa53
test cl, cl
mov dword [esp + 0x28], 0x220
mov eax, 0x208
cmove eax, dword [esp + 0x28]
jmp 0x4bfa53
mov eax, 0x1808
mov ecx, eax
or ecx, 4
cmp byte [esi + 0x3a], bl
cmovne ecx, eax
mov dword [esp + 0x48], ecx
cmp byte [edx + 0x67], bl
jne 0x4bfaa2
or ecx, 0x10
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4bfadc
cmp byte [ecx + 0x68a], bl
je 0x4bfadc
mov eax, dword [ecx + 0xca8]
test eax, eax
je 0x4bfa8e
cmp dword [eax + 4], 1
jl 0x4bfadc
push 0x407ea8
push ecx
call fcn.004ab3a0
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x4bfadc
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4bfad4
cmp byte [ecx + 0x68a], bl
je 0x4bfad4
mov eax, dword [ecx + 0xca8]
test eax, eax
je 0x4bfac2
cmp dword [eax + 4], 1
jl 0x4bfad4
push 0x407ee0
push ecx
call fcn.004ab3a0
mov ecx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
movzx eax, byte [esi + 0x38]
cmp eax, 7
ja case.default.0x4bfaf0
movzx eax, byte [eax + 0x4c0944]
jmp dword [eax*4 + 0x4c093c]
push edi
call fcn.004a4950
add esp, 4
mov edi, dword [eax + 0x34]
movzx esi, byte [eax + 0x38]
test edi, edi
je 0x4bfb13
cmp edi, 0x10000
jne 0x4bfb37
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.004e19e0
add esp, 0x14
mov edi, 0x60000
test al, al
mov ecx, 0x70000
cmovne edi, ecx
sar edi, 0x10
cmp esi, edi
jg 0x4bfb8c
add esi, 0xfffffffc
cmp esi, 3
ja case.default.0x4bfb46
jmp dword [esi*4 + 0x4c094c]
or ebx, 0x80
jmp case.default.0x4bfb46
or ebx, 0x200
jmp case.default.0x4bfb46
or ebx, 0x800
jmp case.default.0x4bfb46
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.004e19e0
add esp, 0x14
test al, al
je 0x4bfbe2
or ebx, 0x2000
inc esi
lea eax, [esi + 4]
cmp eax, edi
jle 0x4bfb41
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c0]
test eax, eax
jne 0x4bfba6
cmp dword [esi + 0x3d4], ebp
je 0x4c01e4
mov edi, dword [esi + 0x3d4]
xor esi, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
xor ebp, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], edi
test edi, edi
je 0x4bfbf0
mov eax, dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x40], eax
jmp 0x4bfd94
mov ecx, dword [esp + 0x18]
push 0x407dbc
jmp 0x4c0914
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov esi, eax
add esp, 4
test esi, esi
je case.0x4c08c8.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4bfd60
mov edi, ebp
sub edi, esi
push edi
push 0x407e20
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfc3e
mov dword [esp + 0x1c], 0x10000
jmp 0x4bfd14
push edi
push 0x407e2c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfc5f
mov dword [esp + 0x1c], 0x20000
jmp 0x4bfd14
push edi
push 0x407e3c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfc80
mov dword [esp + 0x1c], 0x40000
jmp 0x4bfd14
push edi
push 0x407e4c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfc9e
mov dword [esp + 0x1c], 0x50000
jmp 0x4bfd14
push edi
push 0x407e58
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfcbc
mov dword [esp + 0x1c], 0x60000
jmp 0x4bfd14
push edi
push 0x407e60
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfcda
mov dword [esp + 0x1c], 0x70000
jmp 0x4bfd14
push edi
push 0x407e78
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfcf8
mov dword [esp + 0x1c], 0x80000
jmp 0x4bfd14
push edi
push 0x407e90
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4bfd60
mov dword [esp + 0x1c], 0x90000
inc ebp
push 0x5c
push ebp
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x4bfd60
lea eax, [edi + 1]
mov ecx, eax
mov dword [esp + 0x28], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bfd32
sub ecx, edx
cmp ecx, 0x28
jne 0x4bfd60
push ebp
mov byte [edi], al
call dword [fcn.00401040]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [edi], 0x5c
test eax, eax
jne 0x4bfe06
lea edi, [eax + 0x1b]
jmp 0x4bfd65
mov edi, 0x3a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x3c0]
cmp byte [eax], 0
je 0x4c08da
push 0x403748
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4c08da
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x400]
test eax, eax
je 0x4bfdf2
push 0x407fa8
push eax
call fcn.004b0d10
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x4bfdf2
mov eax, 0x407fac
test edi, edi
jne 0x4bfdc7
mov eax, dword [ecx + 0x3c0]
push eax
push 0x407fbc
push ecx
call fcn.004ab2d0
add esp, 0xc
test esi, esi
je 0x4c0187
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 0x3a
jmp 0x4c0922
test ebp, ebp
jne 0x4bff3c
test edi, edi
jne 0x4bff3c
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
push eax
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
mov dword [esp + 0x44], edi
test edi, edi
jne 0x4bfe8d
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
test edi, edi
mov ecx, 0x4080e8
cmovne ecx, edi
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push 0x4080f8
push ecx
call fcn.004ab2d0
push ebx
call dword [fcn.00401038]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x18
test edi, edi
je 0x4bfe75
push edi
call ebx
add esp, 4
test esi, esi
je 0x4c0187
push esi
call ebx
add esp, 4
mov eax, 0x3a
jmp 0x4c0922
push dword [esp + 0x24]
call dword [fcn.00401038]
add esp, 4
mov dword [esp + 0x50], 0x14
lea eax, [esp + 0x90]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push 0
push 0
push eax
lea eax, [esp + 0x9c]
push eax
push 4
push 0x28
push dword [esp + 0x40]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4bfef1
test esi, esi
je 0x4bff29
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4c0922
push 0
lea eax, [esp + 0x54]
push eax
push 0x10000
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test esi, esi
je 0x4bff21
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4c01dc
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4c0922
xor edi, edi
cmp dword [esp + 0x38], edi
je 0x4bff4e
mov dword [esp + 0x24], 0x407fac
jmp 0x4bff58
mov eax, dword [ecx + 0x3c0]
mov dword [esp + 0x24], eax
test esi, esi
je 0x4bff66
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebp, ebp
je 0x4bffdf
push 2
xor esi, esi
push esi
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x13], cl
test eax, eax
jne 0x4c0084
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
jns 0x4c0080
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
test esi, esi
je 0x4c00cc
push ebp
push 1
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4c00cc
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4c00d6
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x410]
mov dword [esp + 0x2c], ebp
test eax, eax
je 0x4c000b
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c0002
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [fcn.00401034]
mov esi, eax
add esp, 4
test esi, esi
je 0x4c0130
test edi, edi
je 0x4c00ff
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [eax + 0x410]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x4c0101
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.004e19e0
add esp, 0x14
test al, al
lea eax, [esp + 0x28]
je 0x4c0114
push 0x8000
jmp 0x4c0116
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x40], eax
test cl, cl
je 0x4c00c3
push 0
push 0
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x4bffa3
lea eax, [esi + 1]
push eax
call dword [fcn.00401034]
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
jmp 0x4bffa7
mov esi, dword [esp + 0x34]
jmp 0x4bffab
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x18]
push dword [eax + 0x3c0]
push 0x407ff8
push eax
call fcn.004ab2d0
push esi
call dword [fcn.00401038]
add esp, 0x10
mov eax, 0x3a
jmp 0x4c0922
xor eax, eax
cmp eax, edi
jg 0x4c0053
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4c0058
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov dword [esp + 0x48], eax
call dword [fcn.00401038]
mov ebp, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x38], 0
jne 0x4c0141
push ebp
call dword [fcn.00401038]
add esp, 4
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x4c0191
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x4c0171
push dword [esp + 0x24]
push 0x408020
push dword [esp + 0x20]
call fcn.004ab2d0
add esp, 0xc
lea eax, [edi + 0x3a]
jmp 0x4c0922
push eax
push dword [esp + 0x28]
push 0x40805c
push dword [esp + 0x24]
call fcn.004ab2d0
add esp, 0x10
mov eax, 0x3a
jmp 0x4c0922
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4c01dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x28]
push 0x4080a0
push dword [esp + 0x24]
call fcn.004ab2d0
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4c0922
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
push 0x20
push 1
call dword [fcn.00401044]
mov ecx, dword [esp + 0x54]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x4c022f
push 0x408138
push esi
call fcn.004ab2d0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4c0218
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebp, ebp
je case.0x4c08c8.2146893056
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x4c0922
mov dword [eax + 0x18], 1
mov eax, dword [ecx]
mov dword [eax + 0x14], ebp
mov ebp, dword [esp + 0x30]
cmp dword [ebp + 0x10], 0
jne 0x4c0677
push 3
push 2
push 0x4563
push 0
push 0xa
call fcn.004e19e0
add esp, 0x14
test al, al
je 0x4c0677
push 0x2c
lea eax, [esp + 0x5c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [esp + 0xb4], 0
push 0x54
lea eax, [esp + 0xd4]
movq qword [esp + 0xb0], xmm0
push 0
push eax
movups xmmword [esp + 0xa8], xmm0
movups xmmword [esp + 0xc4], xmm0
movq qword [esp + 0xd4], xmm0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 0x14]
xor eax, eax
add esp, 0x18
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov word [esp + 0x38], ax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
test edi, edi
je 0x4c0602
mov ch, 1
mov dword [esp + 0x30], eax
mov byte [esp + 0x14], 1
mov byte [esp + 0x17], 1
mov byte [esp + 0x15], 1
mov byte [esp + 0x16], 1
mov byte [esp + 0x13], ch
nop
cmp byte [edi], 0
je 0x4c0464
cmp eax, 5
jge 0x4c0464
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4c0329
mov esi, ebp
sub esi, edi
jmp 0x4c0339
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0330
sub esi, ecx
cmp byte [esp + 0x14], 0
je 0x4c0368
cmp esi, 0x16
jne 0x4c0368
push esi
push edi
push 0x40815c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4c0368
mov ch, byte [esp + 0x13]
xor cl, cl
mov byte [esp + 0x14], cl
jmp 0x4c0423
cmp byte [esp + 0x17], 0
je 0x4c0395
cmp esi, 0x16
jne 0x4c0395
push esi
push edi
push 0x408174
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4c0395
mov ch, byte [esp + 0x13]
mov byte [esp + 0x17], al
jmp 0x4c041f
cmp byte [esp + 0x15], 0
je 0x4c03c5
cmp esi, 0x1c
jne 0x4c03c5
push esi
push edi
push 0x40818c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4c03c5
mov cl, byte [esp + 0x14]
xor dh, dh
mov ch, byte [esp + 0x13]
mov byte [esp + 0x15], dh
jmp 0x4c0427
cmp byte [esp + 0x16], 0
je 0x4c03f9
cmp esi, 0x18
jne 0x4c03f9
push esi
push edi
push 0x4081ac
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4c03f9
mov cl, byte [esp + 0x14]
xor dl, dl
mov ch, byte [esp + 0x13]
mov dh, byte [esp + 0x15]
mov byte [esp + 0x16], dl
jmp 0x4c042b
cmp byte [esp + 0x13], 0
je 0x4c0447
cmp esi, 0x16
jne 0x4c0447
push esi
push edi
push 0x4081c8
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4c0447
xor ch, ch
mov byte [esp + 0x13], ch
mov cl, byte [esp + 0x14]
mov dh, byte [esp + 0x15]
mov dl, byte [esp + 0x16]
mov edi, ebp
test ebp, ebp
je 0x4c0434
lea edi, [ebp + 1]
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
test edi, edi
jne 0x4c0300
jmp 0x4c0470
push edi
push esi
push 0x4081e0
push dword [esp + 0x24]
call fcn.004ab2d0
add esp, 0x10
mov eax, 0x3b
jmp 0x4c0922
mov dh, byte [esp + 0x15]
mov dl, byte [esp + 0x16]
mov cl, byte [esp + 0x14]
mov ah, byte [esp + 0x17]
test cl, cl
je 0x4c04a0
test ah, ah
je 0x4c04a0
test dh, dh
je 0x4c04a0
test dl, dl
je 0x4c04a4
test ch, ch
je 0x4c04a8
push 0x408208
push dword [esp + 0x1c]
call fcn.004ab2d0
mov eax, 0x3b
jmp 0x4c091f
test dl, dl
jne 0x4c04a8
test ch, ch
je 0x4c051b
mov dword [esp + 0x28], 0x200020
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], 0x408240
mov dword [esp + 0xa8], 2
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], 1
mov dword [esp + 0xac], 0x80008
mov dword [esp + 0xb0], 0x408260
cmp dl, ch
je 0x4c0514
test dl, dl
je 0x4c0509
mov dword [esp + 0xbc], 0x80
mov ebp, 1
jmp 0x4c051d
mov dword [esp + 0xc0], 0x40
mov ebp, 1
jmp 0x4c051d
xor ebp, ebp
mov al, ah
test cl, cl
jne 0x4c0537
mov byte [esp + 0x14], cl
mov byte [esp + 0x17], ah
mov byte [esp + 0x15], dh
test al, al
je 0x4c05d1
lea edx, [ebp*8]
mov dword [esp + 0x38], 0x200020
sub edx, ebp
mov dword [esp + 0x3c], 0x408268
shl edx, 2
mov dword [esp + 0x30], edx
cmp cl, ah
je 0x4c056c
test cl, cl
mov esi, 0x408288
mov eax, 0x408298
cmove esi, eax
jmp 0x4c0571
mov esi, 0x408260
mov dl, byte [esp + 0x17]
xor eax, eax
cmp cl, byte [esp + 0x17]
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp byte [esp + 0x14], dl
mov edx, dword [esp + 0x30]
setne al
add eax, 2
inc ebp
mov dword [esp + edx + 0xa8], eax
lea eax, [esp + 0x38]
mov word [esp + edx + 0xac], cx
mov word [esp + edx + 0xae], cx
mov dword [esp + edx + 0xb0], esi
mov dword [esp + edx + 0xb8], eax
mov dword [esp + edx + 0xb4], 1
mov dh, byte [esp + 0x15]
test dh, dh
je 0x4c0604
lea eax, [ebp*8]
sub eax, ebp
inc ebp
mov dword [esp + eax*4 + 0xa8], 2
mov dword [esp + eax*4 + 0xac], 0x240024
mov dword [esp + eax*4 + 0xb0], 0x4082a8
jmp 0x4c0604
xor ebp, ebp
lea eax, [esp + 0xa8]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], eax
not ebx
lea eax, [esp + 0x90]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x48]
or eax, 0x400000
mov dword [esp + 0x58], 5
cmp dword [esp + 0x20], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x98], ebx
je 0x4c0664
lea eax, [esp + 0x20]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
jmp 0x4c0853
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x58]
push 0x38
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 0x58], 4
mov dword [esp + 0x88], eax
mov dword [esp + 0x78], ebx
test edi, edi
je 0x4c0822
test ebx, 0x2000
je 0x4c06d9
cmp byte [esi + 0x68a], 0
je 0x4c06d9
mov eax, dword [esi + 0xca8]
test eax, eax
je 0x4c06cb
cmp dword [eax + 4], 1
jl 0x4c06d9
push 0x408300
push esi
call fcn.004ab3a0
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x4c06f4
push 0x408390
push esi
call fcn.004ab2d0
mov eax, 0x3b
jmp 0x4c091f
xor ebx, ebx
mov dword [esp + 0x38], ebx
nop word [eax + eax]
cmp byte [edi], 0
je 0x4c07f9
cmp ebx, 0x2f
jge 0x4c07f9
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
test eax, eax
jne 0x4c07d3
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x4c073d
sub esi, edi
jmp 0x4c074b
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0742
sub esi, ecx
mov edx, dword [0x407960]
xor ebx, ebx
test edx, edx
je 0x4c0796
mov eax, edx
lea ebp, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c0760
sub eax, ebp
cmp esi, eax
jne 0x4c077d
push esi
push edi
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4c078b
mov edx, dword [ebx*8 + 0x407968]
inc ebx
test edx, edx
jne 0x4c0757
jmp 0x4c0796
mov eax, dword [ebx*8 + 0x407964]
test eax, eax
jne 0x4c07cf
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
push 0x11
push 0x407df4
push edi
call esi
add esp, 0xc
test eax, eax
je 0x4c07be
push 0x15
push 0x407e08
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x4c080a
or dword [esp + 0x88], 0x400000
mov ebx, dword [esp + 0x38]
jmp 0x4c07df
mov ebx, dword [esp + 0x38]
mov dword [esp + ebx*4 + 0xa8], eax
inc ebx
mov dword [esp + 0x38], ebx
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x4c07f9
add edi, 1
jne 0x4c0700
lea eax, [esp + 0xa8]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
jmp 0x4c082e
push 0x408410
push dword [esp + 0x1c]
call fcn.004ab2d0
mov eax, 0x3b
jmp 0x4c091f
or eax, 0x400000
mov dword [esp + 0x88], eax
cmp dword [esp + 0x20], 0
je 0x4c0845
lea eax, [esp + 0x20]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
push ecx
push 0
push 0
push eax
mov eax, dword [0x4eed0c]
push 0
push 2
push 0x4082cc
mov eax, dword [eax + 0xc]
push 0
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c087f
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x4c08d6
push 0x100
lea eax, [esp + 0xac]
push eax
push esi
call fcn.00493420
push eax
push 0x408440
push dword [esp + 0x2c]
call fcn.004ab2d0
push dword [ebx]
call dword [fcn.00401038]
add esi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x4c08c8.2146893055
movzx eax, byte [esi + 0x4c0968]
jmp dword [eax*4 + 0x4c095c]
mov eax, 0x23
jmp 0x4c0922
xor eax, eax
jmp 0x4c0922
mov eax, dword [esp + 0x18]
push dword [eax + 0x3c0]
push 0x407f6c
push eax
call fcn.004ab2d0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, edi
jmp 0x4c0922
push 0x407f18
push ecx
call fcn.004ab2d0
mov eax, 4
jmp 0x4c091f
push 0x407f34
push ecx
call fcn.004ab2d0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed9d4
add esp, 0x19c
ret