Function at 0x40d370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594ebb
mov eax, dword fs:[0]
push eax
sub esp, 0xcd4
mov eax, dword [0x607ba4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xccc], 0
push 4
lea ecx, [ebp - 0xc9c]
call fcn.00415170
push 0x5b1610
lea ecx, [ebp - 0xc9c]
call fcn.00421dd0
mov dword [ebp - 4], 0
mov eax, 2
shl eax, 5
mov ecx, 0x72
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x14
mov ecx, 0x69
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0xa
mov ecx, 0x69
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x1f
mov ecx, 0x75
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 5
mov ecx, 0x41
mov word [ebp + eax - 0x98], cx
mov edx, 2
shl edx, 3
mov eax, 0x5c
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x53
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0xe
mov eax, 0x73
mov word [ebp + edx - 0x98], ax
mov ecx, 2
shl ecx, 4
mov edx, 0x66
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0xb
mov edx, 0x63
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x27
mov edx, 0x72
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 3
mov edx, 0x54
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x1a
mov edx, 0x20
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x13
mov edx, 0x57
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x23
mov edx, 0x6e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x29
mov edx, 0x69
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x22
mov edx, 0x65
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x1b
mov edx, 0x4e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 7
mov edx, 0x45
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x12
mov edx, 0x5c
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x1c
mov edx, 0x54
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x25
mov edx, 0x56
mov word [ebp + ecx - 0x98], dx
mov eax, 2
shl eax, 0
mov ecx, 0x4f
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0xd
mov ecx, 0x6f
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x2a
mov ecx, 0x6f
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x19
mov ecx, 0x73
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x28
mov ecx, 0x73
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x1e
mov ecx, 0x43
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x16
mov ecx, 0x64
mov word [ebp + eax - 0x98], cx
mov edx, 2
shl edx, 2
mov eax, 0x57
mov word [ebp + edx - 0x98], ax
mov ecx, 2
shl ecx, 1
mov edx, 0x46
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x21
mov edx, 0x72
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x6e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0xf
mov edx, 0x6f
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x18
mov edx, 0x77
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0xc
mov edx, 0x72
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x2b
mov edx, 0x6e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x2c
mov dword [ebp - 0xcb8], ecx
cmp dword [ebp - 0xcb8], 0x5a
jae 0x40d6ea
jmp 0x40d6ef
call fcn.0055fd97
xor edx, edx
mov eax, dword [ebp - 0xcb8]
mov word [ebp + eax - 0x98], dx
mov ecx, 2
imul edx, ecx, 0x24
mov eax, 0x74
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 6
mov eax, 0x52
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 9
mov eax, 0x4d
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x11
mov eax, 0x74
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x17
mov eax, 0x6f
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x26
mov eax, 0x65
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x1d
mov eax, 0x5c
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 9
mov eax, 0x6f
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 0xc
mov eax, 0x63
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 7
mov eax, 0x50
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 5
mov eax, 0x61
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 0xb
mov eax, 0x75
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 0xe
mov eax, 0x49
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
shl ecx, 1
mov edx, 0x67
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
shl eax, 4
mov dword [ebp - 0xcbc], eax
cmp dword [ebp - 0xcbc], 0x22
jae 0x40d828
jmp 0x40d82d
call fcn.0055fd97
xor ecx, ecx
mov edx, dword [ebp - 0xcbc]
mov word [ebp + edx - 0x3c], cx
mov eax, 2
imul ecx, eax, 3
mov edx, 0x69
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
imul ecx, eax, 0xa
mov edx, 0x64
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
imul ecx, eax, 0xd
mov edx, 0x74
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
shl eax, 0
mov ecx, 0x69
mov word [ebp + eax - 0x3c], cx
mov edx, 2
imul eax, edx, 0
mov ecx, 0x44
mov word [ebp + eax - 0x3c], cx
mov edx, 2
imul eax, edx, 0xf
mov ecx, 0x64
mov word [ebp + eax - 0x3c], cx
mov edx, 2
imul eax, edx, 6
mov ecx, 0x6c
mov word [ebp + eax - 0x3c], cx
mov edx, 2
shl edx, 2
mov eax, 0x74
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
shl ecx, 3
mov edx, 0x72
mov word [ebp + ecx - 0x3c], dx
mov dword [ebp - 0xc98], 0
push 0x7fc
push 0
lea eax, [ebp - 0xc94]
push eax
call fcn.005640a0
add esp, 0xc
mov dword [ebp - 0xca0], 0x800
lea ecx, [ebp - 0xca4]
push ecx
push 0x101
push 0
lea edx, [ebp - 0x98]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00581ba0
add esp, 0x14
test eax, eax
jne 0x40db00
lea eax, [ebp - 0xca0]
push eax
lea ecx, [ebp - 0xc98]
push ecx
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xca4]
push eax
call fcn.0040c170
add esp, 0x18
mov dword [ebp - 0xcd0], eax
cmp dword [ebp - 0xcd0], 0
jne 0x40daf1
mov byte [ebp - 0x498], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x497]
push ecx
call fcn.005640a0
add esp, 0xc
mov edx, dword [ebp - 0xca0]
push edx
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0xc98]
push ecx
call fcn.005a48d0
add esp, 0xc
call fcn.00419e70
mov dword [ebp - 0xcdc], eax
mov edx, 2
imul eax, edx, 0
mov ecx, 0x25
mov word [ebp + eax - 0x18], cx
mov edx, 2
shl edx, 1
mov dword [ebp - 0xcc0], edx
cmp dword [ebp - 0xcc0], 6
jae 0x40d9d7
jmp 0x40d9dc
call fcn.0055fd97
xor eax, eax
mov ecx, dword [ebp - 0xcc0]
mov word [ebp + ecx - 0x18], ax
mov edx, 2
shl edx, 0
mov eax, 0x73
mov word [ebp + edx - 0x18], ax
lea ecx, [ebp - 0x498]
mov dword [ebp - 0xcb4], ecx
cmp dword [ebp - 0xcb4], 0
jne 0x40da1f
mov dword [ebp - 0xcc8], 0
jmp 0x40dad7
mov edx, dword [ebp - 0xcb4]
mov dword [ebp - 0xcac], edx
mov eax, dword [ebp - 0xcac]
add eax, 1
mov dword [ebp - 0xcd4], eax
mov ecx, dword [ebp - 0xcac]
mov dl, byte [ecx]
mov byte [ebp - 0xca5], dl
add dword [ebp - 0xcac], 1
cmp byte [ebp - 0xca5], 0
jne 0x40da3a
mov eax, dword [ebp - 0xcac]
sub eax, dword [ebp - 0xcd4]
mov dword [ebp - 0xcd8], eax
mov ecx, dword [ebp - 0xcd8]
add ecx, 1
mov dword [ebp - 0xcb0], ecx
cmp dword [ebp - 0xcb0], 0x3fffffff
jle 0x40da91
mov dword [ebp - 0xcc4], 0
jmp 0x40dacb
mov eax, dword [ebp - 0xcb0]
shl eax, 1
call fcn.005603b0
mov dword [ebp - 0xce0], esp
mov edx, dword [ebp - 0xcdc]
push edx
mov eax, dword [ebp - 0xcb0]
push eax
mov ecx, dword [ebp - 0xcb4]
push ecx
mov edx, dword [ebp - 0xce0]
push edx
call fcn.00421f10
mov dword [ebp - 0xcc4], eax
mov eax, dword [ebp - 0xcc4]
mov dword [ebp - 0xcc8], eax
mov ecx, dword [ebp - 0xcc8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc9c]
push eax
call fcn.00422270
add esp, 0xc
mov ecx, dword [ebp - 0xca4]
push ecx
call fcn.005832e0
add esp, 4
lea edx, [ebp - 0xc9c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00421d30
mov eax, dword [ebp - 0xccc]
or eax, 1
mov dword [ebp - 0xccc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc9c]
call fcn.004194f0
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xce4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055fe73
mov esp, ebp
pop ebp
ret