Function at 0x405dd0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4263e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x406189
call fcn.004074e0
mov edi, eax
mov eax, dword [0x4285c8]
cmp edi, eax
jne 0x405e13
push 0xdc
mov ecx, esi
call fcn.004061a0
mov eax, dword [esi + 0x14]
push ebp
mov ecx, dword [eax + 0x3c]
and ecx, 0x70
cmp cl, 0x70
sete cl
test cl, cl
mov byte [esp + 0xf], cl
jne 0x405e6c
mov edx, dword [esi + 0x24]
mov dword [edx], edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x14]
mov edi, dword [eax]
mov ebp, dword [ecx + 4]
add edi, 4
cmp edi, 0x7fffffff
jbe 0x405e5f
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [ebp]
sub eax, edi
neg eax
push 2
push eax
mov ecx, ebp
call dword [edx + 0x10]
jmp 0x405ed1
mov eax, dword [ebp]
push 0
push edi
mov ecx, ebp
call dword [eax + 0x10]
jmp 0x405ed1
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x14]
sub edi, eax
add edi, 4
push 0
push edi
call fcn.00409510
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebp, dword [edi + 0xc]
mov cx, word [edi + 0x24]
add eax, ebp
test cx, cx
jne 0x405ea2
sub eax, dword [edi + 0x28]
jmp 0x405ec9
mov edx, dword [edi + 0x3c]
and edx, 0x70
cmp dl, 0x70
jne 0x405ec9
mov edx, dword [edi + 0x60]
mov edx, dword [edx + 4]
add ecx, 0xffff
mov edi, ecx
and edi, 0xffff
add eax, dword [edx + edi*4]
test cx, cx
ja 0x405eb3
mov ecx, dword [esi + 0x24]
add eax, 0xfffffffc
mov dword [ecx], eax
push 0
push 0x12
lea ecx, [esp + 0x1c]
call fcn.00405b90
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
push 1
push 0x12
push edx
mov dword [esp + 0x34], 0
call fcn.00407890
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x10], 0
mov word [eax], 0
mov cx, word [ecx]
mov word [eax], cx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 6
add ecx, 2
mov word [eax], 0
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 8
add ecx, 4
mov word [eax], 0
mov cx, word [ecx]
mov word [eax], cx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 0xa
add ecx, 6
mov word [eax], 0
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 0xc
add ecx, 8
mov dword [eax], 0
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 0x10
add ecx, 0xc
mov dword [eax], 0
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
add eax, 0x10
mov di, word [eax]
mov word [esp + 0x10], di
call fcn.00405bd0
mov ebp, dword [esp + 0x10]
test di, di
je 0x405fd3
mov ecx, dword [esi + 0x24]
mov edi, ebp
and edi, 0xffff
push 0
push edi
add ecx, 0x18
call fcn.00405c00
mov ecx, dword [esi + 0x24]
push 1
push edi
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esi + 0x14]
push eax
call fcn.00407890
mov eax, dword [esi + 0x24]
mov ecx, 0xffff
cmp word [eax + 4], cx
jae 0x406006
cmp word [eax + 6], cx
jae 0x406006
cmp word [eax + 8], cx
jae 0x406006
cmp word [eax + 0xa], cx
jae 0x406006
mov edx, dword [eax + 0xc]
or edi, 0xffffffff
cmp edx, edi
jae 0x406006
cmp dword [eax + 0x10], edi
jb 0x406095
mov dl, byte [esp + 0xf]
test dl, dl
jne 0x406034
mov ecx, dword [eax]
cmp ecx, 0x14
jb 0x406092
mov eax, dword [esi + 0x14]
mov edi, ecx
sub edi, 0x14
mov ebp, dword [eax + 4]
cmp edi, 0x7fffffff
jbe 0x40604a
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
sub eax, edi
jmp 0x406057
and ebp, ecx
mov ecx, dword [esi + 0x14]
mov edx, 0xffffffd6
push 0
sub edx, ebp
push edx
call fcn.00409510
jmp 0x406064
mov eax, dword [ebp]
push 0
push edi
mov ecx, ebp
call dword [eax + 0x10]
jmp 0x406064
mov edx, dword [ebp]
push 2
neg eax
push eax
mov ecx, ebp
call dword [edx + 0x10]
mov ecx, dword [esi + 0x14]
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.00407890
lea edx, [esp + 0x10]
mov ecx, 0x43238c
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x406092
push 0xdd
mov ecx, esi
call fcn.004061a0
or edi, 0xffffffff
mov ecx, dword [esi + 8]
shr ecx, 9
not cl
test cl, 1
je 0x4060cf
mov eax, dword [esi + 0x24]
mov cx, word [eax + 4]
test cx, cx
jne 0x4060cf
mov dx, word [eax + 0xa]
cmp dx, word [eax + 8]
jne 0x4060be
cmp word [eax + 6], cx
je 0x4060cf
test cx, cx
jne 0x4060cf
push 0xc9
mov ecx, esi
call fcn.004061a0
mov eax, dword [esi + 0x24]
mov cx, word [eax + 4]
push ecx
mov ecx, dword [esi + 0x14]
call fcn.00408f70
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x3c]
shr eax, 4
test al, 1
jne 0x406109
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov ebp, dword [eax + 0xc]
mov edx, dword [eax]
add ecx, ebp
cmp edx, ecx
jae 0x406109
push 0xc9
mov ecx, esi
call fcn.004061a0
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x40612c
mov eax, dword [esi + 0x24]
cmp word [eax + 4], 0
jne 0x40612c
mov edx, dword [eax]
mov ebp, dword [eax + 0x10]
sub edx, ebp
mov ebp, dword [eax + 0xc]
sub edx, ebp
mov dword [ecx + 0x28], edx
mov eax, dword [esi + 0x24]
pop ebp
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x40613d
cmp word [eax + 0xa], cx
jne 0x406148
cmp word [eax + 0xa], 0
jne 0x406154
test ecx, ecx
je 0x406154
push 0xc9
mov ecx, esi
call fcn.004061a0
mov eax, dword [esi + 0x24]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0x24]
mov dx, word [ecx + 6]
mov ecx, dword [esi + 0x14]
push edx
call fcn.00408470
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40617c
mov ecx, esi
call fcn.00406220
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.00405bc0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret