Function at 0x401071
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push str.k_e_r_n_e_l_3_2_._d_l_l
call fcn.004015e0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x18], eax
mov edi, eax
mov dword [ebp - 0x10], ebx
push 0xa
push 1
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.0040165a
pop ecx
pop ecx
test eax, eax
je 0x40138d
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x3000
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
mov eax, esi
xor edx, edx
sub eax, edx
je 0x4012ae
sub eax, 1
je 0x401275
sub eax, 1
je 0x40122f
sub eax, 1
je 0x4011f1
sub eax, 1
je 0x401116
sub eax, 1
je 0x401370
sub eax, 1
jne 0x401357
mov eax, ebx
mov ebx, eax
mov ebx, dword [ebp - 0x10]
jmp 0x401357
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x4011ea
cmp dword [ebx + 0xa4], edx
je 0x4011ea
lea esi, [eax + edi]
cmp dword [esi], edx
je 0x4011ea
lea eax, [esi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [eax]
test eax, eax
je 0x4011e7
mov ecx, dword [esi]
add eax, 0xfffffff8
shr eax, 1
mov ebx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x4011da
movzx edx, word [esi + ebx*2 + 8]
mov eax, edx
and eax, 0xf000
cmp ax, word [ebp - 0x28]
jne 0x4011d2
and edx, 0xfff
add edx, ecx
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
add edx, edi
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40118a
sub ecx, dword [ebp - 0x14]
je 0x4011c8
mov edi, dword [ebp - 0x2c]
sub ecx, edi
mov al, byte [ecx + 0x4040b7]
mov byte [edi + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], al
call fcn.00401535
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
inc edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011b5
sub ecx, edx
cmp edi, ecx
jb 0x401199
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov eax, edi
sub eax, dword [ebp - 8]
add dword [edx], eax
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x40115c
xor edx, edx
mov eax, dword [ebp - 0x3c]
add esi, dword [eax]
cmp dword [esi], edx
jne 0x40113b
mov ebx, dword [ebp - 0x10]
push 5
jmp 0x4012a8
xor eax, eax
mov dword [ebp - 0x14], edx
cmp ax, word [ebx + 6]
jae 0x40122b
lea esi, [ebx + 0x10c]
push dword [esi - 4]
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
mov eax, dword [esi - 8]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x14]
lea esi, [esi + 0x28]
movzx eax, word [ebx + 6]
add esp, 0xc
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x401202
push 4
jmp 0x4012a8
mov esi, dword [ebp - 0x18]
push 0x40
push ecx
push esi
push dword [ebp - 8]
call dword [ebp - 0x1c]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 4], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x401467
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [ecx], eax
push dword [ebx + 0x54]
push dword [ebp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 3
jmp 0x4012a8
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401467
mov ebx, dword [eax + 0x3c]
add ebx, eax
mov dword [ebp - 0x10], ebx
cmp dword [ebx], 0x4550
jne 0x401467
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
push 2
pop esi
jmp 0x401357
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
mov esi, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012b8
sub ecx, edx
je 0x4012ec
sub ecx, esi
mov al, byte [ecx + 0x4040b7]
mov byte [esi + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], al
call fcn.00401535
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
inc esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012df
sub ecx, edx
cmp esi, ecx
jb 0x4012c3
push str.V_i_r_t_u_a_l_A_l_l_o_c
call fcn.004015e0
pop ecx
push eax
push dword [ebp - 0x20]
call dword [ebp - 0xc]
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
mov dword [ebp - 0x1c], eax
xor esi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40130b
sub ecx, edx
je 0x40133f
sub ecx, esi
mov al, byte [ecx + 0x4040b7]
mov byte [esi + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], al
call fcn.00401535
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
inc esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401332
sub ecx, edx
cmp esi, ecx
jb 0x401316
push str.L_o_a_d_L_i_b_r_a_r_y_A
call fcn.004015e0
pop ecx
push eax
push dword [ebp - 0x20]
call dword [ebp - 0xc]
xor esi, esi
mov dword [ebp - 0x24], eax
inc esi
push 0xa
push 1
call fcn.0040165a
pop ecx
pop ecx
test eax, eax
je 0x40138d
mov ecx, 0x3000
jmp 0x4010cc
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x40138d
cmp dword [ebx + 0x84], edx
je 0x40138d
lea esi, [eax + edi]
mov dword [ebp - 0x20], esi
cmp dword [esi + 0xc], edx
jne 0x40139e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call dword [ebp - 0x24]
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
je 0x401467
mov edi, dword [esi]
mov ecx, dword [ebp - 4]
add edi, ecx
mov ebx, dword [esi + 0x10]
add ebx, ecx
jmp 0x401449
jns 0x40142b
movzx eax, word [edi]
push eax
push edx
call dword [ebp - 0xc]
mov edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x401467
and dword [ebp - 0x38], 0
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
lea eax, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013eb
sub ecx, dword [ebp - 0x3c]
je 0x40143b
mov esi, dword [ebp - 0x38]
sub ecx, esi
mov al, byte [ecx + 0x4040b7]
mov byte [esi + str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm], al
call fcn.00401535
mov ecx, str.opapofjpoergj_2se1g35rg5g487dfm__lihhmm
inc esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401416
sub ecx, edx
cmp esi, ecx
jb 0x4013fa
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
jmp 0x40143b
add ecx, 2
add eax, ecx
push eax
push edx
call dword [ebp - 0xc]
mov edx, eax
test edx, edx
je 0x401467
mov ecx, dword [ebp - 4]
add edi, 4
mov dword [ebx], edx
add ebx, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [edi]
test eax, eax
jne 0x4013c5
add esi, 0x14
mov dword [ebp - 0x20], esi
cmp dword [esi + 0xc], eax
jne 0x40139b
jmp 0x40138d
xor eax, eax
jmp 0x401396