Function at 0x401050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
mov dword [ebp - 0x60], 0
push str.k_e_r_n_e_l_3_2_._d_l_l
call fcn.004019c0
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x84], 0
push 0xa
push 1
call fcn.00401a80
add esp, 8
test eax, eax
je 0x401679
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 6
ja case.default.0x401117
mov edx, dword [ebp - 0x64]
jmp dword [edx*4 + 0x4016a0]
mov dword [ebp - 0x20], 0
jmp 0x401130
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp - 0x20], eax
jae 0x401168
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov dl, byte [eax + 0x4040b7]
mov byte [ecx + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], dl
call fcn.00401880
jmp 0x401127
xor eax, eax
jne case.0x401117.0
push str.V_i_r_t_u_a_l_A_l_l_o_c
call fcn.004019c0
add esp, 4
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x24], 0
jmp 0x401199
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp - 0x24], eax
jae 0x4011d1
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov dl, byte [eax + 0x4040b7]
mov byte [ecx + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], dl
call fcn.00401880
jmp 0x401190
xor eax, eax
jne 0x401187
push str.L_o_a_d_L_i_b_r_a_r_y_A
call fcn.004019c0
add esp, 4
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x14], 1
jmp case.default.0x401117
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40121a
xor eax, eax
jmp 0x40169a
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x401238
xor eax, eax
jmp 0x40169a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x14], 2
jmp case.default.0x401117
push 4
push 0x3000
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [ebp - 0x6c]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40128a
xor eax, eax
jmp 0x40169a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x14], 3
jmp case.default.0x401117
mov ecx, dword [ebp - 8]
add ecx, 0xf8
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], 0
jmp 0x4012e1
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x401345
imul edx, dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x98], ecx
imul edx, dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0xa0], ecx
imul edx, dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4012d8
mov dword [ebp - 0x14], 4
jmp case.default.0x401117
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x54], edx
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x54], 0
je 0x4014b1
cmp dword [ebp - 0x74], 0
je 0x4014b1
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x54]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x4014b1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x4014b1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xc]
add edx, 8
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x28], 0
jmp 0x4013e2
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0xa4]
jae 0x4014a0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + edx*2]
sar ecx, 0xc
mov word [ebp - 0x48], cx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + edx*2]
and ecx, 0xfff
mov word [ebp - 0x40], cx
movzx edx, word [ebp - 0x48]
cmp edx, 3
jne 0x40149b
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xa8]
movzx ecx, word [ebp - 0x40]
add eax, ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x2c], 0
jmp 0x401443
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp - 0x2c], eax
jae 0x40147b
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [eax + 0x4040b7]
mov byte [ecx + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], dl
call fcn.00401880
jmp 0x40143a
xor eax, eax
jne 0x401431
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
add eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
jmp 0x4013d9
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x401392
mov dword [ebp - 0x14], 5
jmp case.default.0x401117
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x58], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x58], 0
je 0x40166a
cmp dword [ebp - 0x80], 0
je 0x40166a
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x58]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0xc], 0
je 0x40166a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [ebp - 0x84]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x401537
xor eax, eax
jmp 0x40169a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x40165c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
and eax, 0x80000000
je 0x4015f9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
and edx, 0xffff
mov word [ebp - 0x44], dx
movzx eax, word [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x40159e
xor eax, eax
jmp 0x40169a
mov dword [ebp - 0x30], 0
jmp 0x4015b0
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp - 0x30], eax
jae 0x4015e8
push str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov dl, byte [eax + 0x4040b7]
mov byte [ecx + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], dl
call fcn.00401880
jmp 0x4015a7
xor eax, eax
jne 0x40159e
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x88]
mov dword [ecx], edx
jmp 0x401645
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
add edx, 2
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x40163a
xor eax, eax
jmp 0x40169a
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x8c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 4
mov dword [ebp - 0x3c], edx
jmp 0x40154e
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x1c], eax
jmp 0x4014fe
jmp 0x401679
mov eax, ebx
mov ebx, eax
jmp 0x4010f0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
pop ebx
mov esp, ebp
pop ebp
ret