Function at 0x41d534
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x67feb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xc0000033
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 8]
shr ecx, 1
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0xc]
call fcn.00404d98
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x689f28]
call fcn.004280d4
mov edi, eax
lea eax, [ebp - 0x14]
mov edx, dword [edi + 4]
call fcn.00404d04
mov eax, dword [0x68cfe0]
mov eax, dword [eax]
cmp byte [eax + 0x8b], 0
je 0x41da8c
lea ecx, [ebp - 0x374]
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0041c218
mov edx, dword [ebp - 0x374]
mov eax, esi
call fcn.004203c8
test eax, eax
je 0x41da8c
lea eax, [ebp - 0x34]
call fcn.00404ca4
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x50], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.00404ed8
push eax
call fcn.00406acc
mov edi, eax
cmp edi, 0xffffffff
je 0x41da8c
mov eax, 0x40
call fcn.00403250
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0x40
mov eax, dword [ebp - 0x20]
push eax
push edi
call fcn.00406cb4
test eax, eax
je 0x41d7c7
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x5a4d
jne 0x41d7c7
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push edi
call fcn.00406cdc
mov eax, dword [ebp - 0x20]
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0x18
mov eax, dword [ebp - 0x20]
push eax
push edi
call fcn.00406cb4
test eax, eax
je 0x41d7c7
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
jne 0x41d7c7
add eax, 4
mov dx, word [eax + 0x12]
mov word [ebp - 0x52], dx
cmp word [eax], 0x8664
jne 0x41d739
mov eax, dword [ebp - 0x20]
call fcn.00403270
mov eax, 0xf0
call fcn.00403250
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0xf0
mov eax, dword [ebp - 0x20]
push eax
push edi
call fcn.00406cb4
test eax, eax
je 0x41d7c7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
mov cx, word [eax + 0x44]
mov dl, 1
mov eax, esi
call fcn.0041d310
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x98], 0
je 0x41d713
test byte [ebp - 0x52], 1
je 0x41d722
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x4c], eax
jmp 0x41d7c7
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41d7c7
cmp dx, 0x150
ja 0x41d7c7
mov eax, dword [ebp - 0x20]
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0xe0
mov eax, dword [ebp - 0x20]
push eax
push edi
call fcn.00406cb4
test eax, eax
je 0x41d7c7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
mov cx, word [eax + 0x44]
xor edx, edx
mov eax, esi
call fcn.0041d310
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x88], 0
je 0x41d7ac
test byte [ebp - 0x52], 1
je 0x41d7b5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.00405000
je 0x41da86
cmp dword [ebp - 0x4c], 0
jbe 0x41da86
push 0
push 0
mov eax, dword [ebp + 0x10]
add eax, 0x38
push eax
mov eax, dword [ebp - 0x34]
call fcn.00404ed8
push eax
call fcn.0040dc44
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 0x38]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041aa38
test eax, eax
jne 0x41da86
push 0x18
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor edx, edx
call fcn.0041a8f0
test eax, eax
jne 0x41da74
lea eax, [ebp - 0x24]
push eax
push 0x20c
lea eax, [ebp - 0x354]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00406cbc
test eax, eax
je 0x41da74
cmp dword [ebp - 0x48], 0
jne 0x41d8af
push 0x40
push 0x1000
mov eax, dword [ebp - 0x4c]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00406d04
mov dword [ebp - 0x48], eax
jmp 0x41d8ef
push 0x40
push 0x2000
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00406d04
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41d8ef
push 0x40
push 0x1000
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00406d04
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x41da74
push 0
push edi
call fcn.00406b8c
mov ebx, eax
mov eax, ebx
call fcn.00403250
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push edi
call fcn.00406cdc
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
push edi
call fcn.00406cb4
test eax, eax
je 0x41d9bd
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00406d44
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x41d9bd
inc eax
mov dword [ebp - 0x64], eax
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x30]
cmp dword [edx + eax*8 + 0x108], 0
jbe 0x41d9b7
lea edx, [ebp - 0x24]
push edx
lea edx, [ebx + ebx*4]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + edx*8 + 0x108]
push edx
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + eax*8 + 0x10c]
add edx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + eax*8 + 0x104]
add eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00406d44
inc ebx
dec dword [ebp - 0x64]
jne 0x41d96e
mov eax, dword [ebp - 0x20]
call fcn.00403270
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov edx, dword [0x67e50c]
mov eax, 0x40
call fcn.00405650
mov dword [ebp - 0x1c], eax
mov edx, 0x40
mov eax, dword [ebp - 0x1c]
call fcn.00406da0
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
add eax, 8
mov edx, dword [ebp - 0x14]
call fcn.00404ce0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x6c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34c]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x108]
call fcn.004162cc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0041ccb0
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41da86
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor edx, edx
call fcn.0041b004
push edi
call fcn.00406a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67febc
lea eax, [ebp - 0x374]
call fcn.00404ca4
lea eax, [ebp - 0x34]
call fcn.00404ca4
lea eax, [ebp - 0x14]
call fcn.00404ca4
ret