Function at 0x40c0c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x49a0f4]
xor eax, ebp
mov dword [ebp - 0x54], eax
cmp dword [ebp + 0xc], 0
jne 0x40c0e0
xor eax, eax
jmp 0x40c6f4
mov eax, 0xffff
mov word [ebp - 0x1c], ax
cmp dword [ebp + 0xc], 0xffff
jae 0x40c101
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
mov word [ebp - 0x1c], cx
jmp 0x40c141
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x23
jne 0x40c141
mov ecx, dword [ebp + 0xc]
add ecx, 1
push ecx
call fcn.004651e9
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffff
jae 0x40c141
cmp dword [ebp - 0x30], 0
je 0x40c141
mov edx, dword [ebp - 0x30]
and edx, 0xffff
mov word [ebp - 0x1c], dx
movzx eax, word [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x40c15a
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x40c161
xor eax, eax
jmp 0x40c6f4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x40c17f
xor eax, eax
jmp 0x40c6f4
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040ca00
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40c1a9
cmp dword [ebp - 0x10], 0
jne 0x40c1b0
xor eax, eax
jmp 0x40c6f4
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 0
jne 0x40c1c0
xor eax, eax
jmp 0x40c6f4
cmp dword [ebp - 0x10], 0x28
ja 0x40c20d
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0x14]
cmp ecx, dword [eax + 0x18]
jbe 0x40c1e2
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x178], eax
jmp 0x40c1ee
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x178], edx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x24]
sub edx, eax
mov eax, dword [ebp - 0x178]
imul eax, eax, 0xff
add edx, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x20], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40c23e
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x17c], edx
jmp 0x40c255
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040cbd0
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 4], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40c274
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x180], edx
jmp 0x40c28b
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040cbd0
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40c2aa
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x184], edx
jmp 0x40c2c1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040cbd0
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0
jmp 0x40c2dc
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 0x14]
jae 0x40c6f2
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov ax, word [edx + ecx*2]
mov word [ebp - 0x44], ax
movzx ecx, word [ebp - 0x44]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40c30e
jmp 0x40c2d3
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40c32a
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x188], ecx
jmp 0x40c347
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040cbd0
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x3c], ecx
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40c366
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x18c], eax
jmp 0x40c37d
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040cbd0
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x38], ecx
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40c635
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x24]
jbe 0x40c635
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x38], ecx
jae 0x40c635
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
add ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x190]
mov al, byte [edx]
mov byte [ebp - 0x195], al
add dword [ebp - 0x190], 1
cmp byte [ebp - 0x195], 0
jne 0x40c3cb
mov ecx, dword [ebp - 0x190]
sub ecx, dword [ebp - 0x194]
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 0x19c]
add edx, 1
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 0x100
jb 0x40c41b
jmp 0x40c2d3
mov eax, dword [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x158]
push edx
call fcn.00466170
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x160], 0
jmp 0x40c45e
mov eax, dword [ebp - 0x160]
add eax, 1
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
cmp ecx, dword [ebp - 0x15c]
jae 0x40c4a1
mov edx, dword [ebp - 0x160]
movsx eax, byte [ebp + edx - 0x158]
cmp eax, 0x2e
jne 0x40c49f
mov ecx, dword [ebp - 0x160]
mov byte [ebp + ecx - 0x158], 0
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x48]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x4c], ecx
jmp 0x40c4a1
jmp 0x40c44f
cmp dword [ebp - 0x4c], 0
je 0x40c4c2
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x23
jne 0x40c4c2
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
je 0x40c59f
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
mov dl, byte [ecx]
mov byte [ebp - 0x1a5], dl
mov eax, dword [ebp - 0x1a0]
cmp dl, byte [eax]
jne 0x40c53c
cmp byte [ebp - 0x1a5], 0
je 0x40c530
mov ecx, dword [ebp - 0x1a4]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x1a6], dl
mov eax, dword [ebp - 0x1a0]
cmp dl, byte [eax + 1]
jne 0x40c53c
add dword [ebp - 0x1a4], 2
add dword [ebp - 0x1a0], 2
cmp byte [ebp - 0x1a6], 0
jne 0x40c4de
mov dword [ebp - 0x1ac], 0
jmp 0x40c547
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], edx
cmp dword [ebp - 0x1b0], 0
je 0x40c561
jmp 0x40c2d3
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x164], eax
movzx ecx, byte [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x164]
push eax
call fcn.0040c0c0
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
jmp 0x40c6f4
cmp dword [ebp - 0x50], 0
je 0x40c630
movzx ecx, word [ebp - 0x1c]
cmp ecx, 0xffff
jge 0x40c630
mov edx, dword [ebp - 0x50]
push edx
call fcn.004651e9
add esp, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xffff
ja 0x40c5e8
cmp dword [ebp - 0x16c], 0
je 0x40c5e8
movzx eax, word [ebp - 0x1c]
cmp dword [ebp - 0x16c], eax
je 0x40c5ed
jmp 0x40c2d3
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x170], eax
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x16c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.0040c0c0
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
jmp 0x40c6f4
jmp 0x40c2d3
cmp dword [ebp + 0xc], 0xffff
jbe 0x40c6d9
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dl, byte [ecx]
mov byte [ebp - 0x1b9], dl
mov eax, dword [ebp - 0x1b4]
cmp dl, byte [eax]
jne 0x40c6b2
cmp byte [ebp - 0x1b9], 0
je 0x40c6a6
mov ecx, dword [ebp - 0x1b8]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x1ba], dl
mov eax, dword [ebp - 0x1b4]
cmp dl, byte [eax + 1]
jne 0x40c6b2
add dword [ebp - 0x1b8], 2
add dword [ebp - 0x1b4], 2
cmp byte [ebp - 0x1ba], 0
jne 0x40c654
mov dword [ebp - 0x1c0], 0
jmp 0x40c6bd
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x1c0], ecx
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], edx
cmp dword [ebp - 0x1c4], 0
jne 0x40c6d9
mov eax, dword [ebp - 0x38]
jmp 0x40c6f4
movzx eax, word [ebp - 0x44]
add eax, 1
movzx ecx, word [ebp - 0x1c]
cmp eax, ecx
jne 0x40c6ed
mov eax, dword [ebp - 0x38]
jmp 0x40c6f4
jmp 0x40c2d3
xor eax, eax
mov ecx, dword [ebp - 0x54]
xor ecx, ebp
call fcn.004643e7
mov esp, ebp
pop ebp
ret 0xc