Function at 0x40218e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x40220c
mov eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
sub eax, dword [str.s_tv_]
add eax, 3
mov dword [str._tv_], eax
xor eax, eax
jmp 0x4027ad
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x402251
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
xor eax, eax
jmp 0x4027ad
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
cmp dword [ebp - 0x20], 0
jne 0x4022fb
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], eax
cmp dword [ebp - 0x20], 0
jne 0x40232a
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
xor eax, eax
jmp 0x4027ad
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x54]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00402092
add esp, 0xc
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
sub eax, dword [str.s_tv_]
add eax, 3
mov dword [str._tv_], eax
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004027af
add esp, 0xc
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0xc], ecx
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
cmp dword [ebp - 0xc], 0
je 0x4025ae
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00402cc7
pop ecx
pop ecx
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
push dword [ebp - 4]
call fcn.00402f71
pop ecx
test eax, eax
jne 0x4025cd
jmp 0x4027ab
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
push dword [ebp - 4]
call fcn.004029f8
pop ecx
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x402719
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x28]
mov dword [ebp - 8], ecx
mov eax, dword [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], eax
cmp dword [ebp - 8], 0
jne 0x402672
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
jmp 0x4027a9
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], eax
push 0
push 1
push dword [ebp - 0x20]
call dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
cmp dword [ebp - 0x18], 0
jne 0x4026ed
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
jmp 0x4027a7
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [ebp - 4]
jmp 0x4027ad
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], eax
push dword [ebp - 4]
call fcn.004035d6
pop ecx
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
xor eax, eax
jmp 0x4027ad
jmp 0x40275c
jmp 0x40275c
jmp 0x40275c
leave
ret