Function at 0x40dd30
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x4e4817
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
push 0x46
mov esi, ecx
call fcn.004aef0e
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40ddb3
mov dword [eax], edi
mov word [eax + 4], di
mov dword [eax + 6], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], edi
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], edi
mov word [eax + 0x44], di
mov word [eax + 0xa], 3
mov edi, eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
add esi, 0x220
push edx
mov ecx, esi
mov dword [edi], eax
call fcn.004414d0
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov ebp, dword [esi + 4]
je 0x40dddf
cmp ebx, esi
je 0x40dde4
call fcn.004c000c
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x40e050
test ebx, ebx
jne 0x40ddf9
call fcn.004c000c
cmp esi, dword [ebx + 4]
jne 0x40de03
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov cx, word [eax + 6]
mov word [edi + 4], cx
cmp esi, dword [ebx + 4]
jne 0x40de18
call fcn.004c000c
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 8]
mov dword [edi + 6], eax
cmp esi, dword [ebx + 4]
jne 0x40de2b
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edi + 0xc], ecx
mov edx, dword [eax + 0x14]
mov dword [edi + 0x10], edx
cmp esi, dword [ebx + 4]
jne 0x40de44
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x14], ecx
mov edx, dword [eax + 0x1c]
mov dword [edi + 0x18], edx
cmp esi, dword [ebx + 4]
jne 0x40de5d
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x20]
mov dword [edi + 0x1c], ecx
mov edx, dword [eax + 0x24]
mov dword [edi + 0x20], edx
cmp esi, dword [ebx + 4]
jne 0x40de76
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [edi + 0x24], ecx
mov edx, dword [eax + 0x2c]
mov dword [edi + 0x28], edx
cmp esi, dword [ebx + 4]
jne 0x40de8f
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x2c], ecx
mov edx, dword [eax + 0x34]
mov dword [edi + 0x30], edx
cmp esi, dword [ebx + 4]
jne 0x40dea8
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [edi + 0x34], ecx
mov edx, dword [eax + 0x3c]
mov dword [edi + 0x38], edx
cmp esi, dword [ebx + 4]
jne 0x40dec1
call fcn.004c000c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [edi + 0x3c], ecx
cmp esi, dword [ebx + 4]
jne 0x40ded4
call fcn.004c000c
mov edx, dword [esi + 0x10]
mov ax, word [edx + 0x4c]
mov word [edi + 0x44], ax
cmp esi, dword [ebx + 4]
jne 0x40dee9
call fcn.004c000c
mov ecx, dword [esi + 0x10]
movzx eax, word [ecx + 0xc]
cmp eax, 0x15
ja case.default.0x40defc
movzx edx, byte [eax + 0x40e084]
jmp dword [edx*4 + 0x40e074]
mov word [edi + 0xa], 3
jmp case.default.0x40defc
mov word [edi + 0xa], 0
jmp case.default.0x40defc
mov word [edi + 0xa], 1
jmp case.default.0x40defc
mov word [edi + 0xa], 2
xor eax, eax
mov ebp, 7
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
cmp esi, dword [ebx + 4]
mov dword [esp + 0x44], eax
jne 0x40df43
call fcn.004c000c
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x44], 0
je 0x40df7d
cmp esi, dword [ebx + 4]
jne 0x40df56
call fcn.004c000c
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x44]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40df61
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00401930
jmp case.0x40df9d.6
cmp esi, dword [ebx + 4]
jne 0x40df87
call fcn.004c000c
mov edx, dword [esi + 0x10]
movzx eax, word [edx + 0xe]
add eax, 0xfffffffd
cmp eax, 0xd
ja case.0x40df9d.6
movzx eax, byte [eax + 0x40e0bc]
jmp dword [eax*4 + 0x40e09c]
cmp word [edi + 0xa], 3
jne case.0x40df9d.6
mov word [edi + 0xa], 4
jmp case.0x40df9d.6
mov word [edi + 0xa], 6
jmp case.0x40df9d.6
mov word [edi + 0xa], bp
jmp case.0x40df9d.6
push 0x4f6448
jmp 0x40dfdb
push 0x4f6450
jmp 0x40dfdb
push 0x4f6394
jmp 0x40dfdb
push 0x4f6458
lea ecx, [esp + 0x20]
call fcn.0040b920
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, 8
jbe 0x40e03d
cmp word [edi + 0xa], 3
jne 0x40dffe
mov word [edi + 0xa], 5
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aef3e
mov ecx, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [edi + 0x40], eax
jae 0x40e02b
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 1
push ecx
push eax
call fcn.004c0258
add esp, 0xc
cmp dword [esp + 0x34], esi
jb 0x40e050
mov edx, dword [esp + 0x20]
push edx
call fcn.004aef39
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x34
ret 4