Function at 0x410030
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x44]
movzx edx, byte [eax + 0x26]
xor ecx, ecx
mov ch, byte [eax + 0x24]
add eax, 0x24
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
jle 0x410522
cmp byte [esp + 0x44], bl
mov byte [esp + 0x12], bl
je 0x4100b4
mov esi, dword [ebp]
call fcn.00409b30
mov esi, dword [esp + 0x40]
cmp esi, eax
ja 0x4100b4
lea ecx, [esp + 0x13]
push ebx
push ecx
mov eax, esi
mov ecx, ebp
call fcn.0040c4d0
add esp, 8
test eax, eax
jne 0x410510
cmp byte [esp + 0x13], 2
jne 0x4100ae
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x3c]
mov dword [edx], esi
mov eax, dword [edi + 0x48]
push eax
call fcn.0040b190
add esp, 4
test eax, eax
jne 0x410510
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x44]
add ecx, 0xffffffff
add eax, 0x24
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
nop
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4100ff
mov eax, dword [ebx + 0x44]
jmp 0x410105
mov eax, dword [edi + 0x44]
add eax, 0x20
mov ch, byte [eax]
movzx edx, byte [eax + 2]
push 0
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov eax, dword [ebp]
mov esi, ecx
lea ecx, [esp + 0x2c]
push ecx
mov ebx, esi
call fcn.0040a930
add esp, 8
test eax, eax
jne 0x4104e5
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
je 0x410148
lea edi, [eax + 0x30]
jmp 0x41014a
xor edi, edi
mov edx, dword [eax + 0x2c]
mov dword [edi + 0x48], eax
cmp esi, 1
setne al
sub al, 1
mov ebx, edx
mov dword [edi + 0x44], edx
mov dword [edi + 0x40], ebp
mov dword [edi + 0x4c], esi
mov dword [esp + 0x20], edi
and eax, 0x64
mov byte [edi + 8], al
movzx ecx, byte [ebx + 6]
movzx edx, byte [ebx + 7]
xor eax, eax
mov ah, byte [ebx + 4]
mov al, byte [ebx + 5]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov dword [esp + 0x14], eax
jne 0x4101ce
cmp byte [esp + 0x12], 0
jne 0x4101ce
mov eax, dword [edi + 0x48]
push eax
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4104ee
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov dword [ecx], esi
mov edx, dword [edi + 0x44]
mov ecx, dword [eax + 0x44]
mov edx, dword [edx]
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x20], edx
mov dword [eax], edi
mov dword [esp + 0x20], ebp
jmp 0x4104b5
movzx ecx, word [ebp + 0x1e]
shr ecx, 2
sub ecx, 8
cmp eax, ecx
jg 0x4104e9
cmp byte [esp + 0x12], 0
je 0x410356
cmp dword [esp + 0x40], esi
jne 0x410356
mov eax, dword [edi + 0x48]
mov edx, dword [esp + 0x38]
push eax
mov dword [edx], edi
mov byte [esp + 0x16], 0
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4104ee
cmp dword [esp + 0x14], eax
jne 0x410253
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41023c
mov ecx, dword [edi + 0x44]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x44]
mov ecx, dword [ecx]
mov dword [eax + 0x20], ecx
mov dword [esp + 0x20], ebp
jmp 0x4104b5
mov edx, dword [edi + 0x44]
mov eax, dword [eax + 0x44]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [esp + 0x20], 0
jmp 0x4104b5
mov eax, dword [edi + 0x44]
movzx edx, byte [eax + 0xa]
mov esi, dword [esp + 0x34]
add eax, 8
xor ebx, ebx
mov bh, byte [eax]
lea ecx, [esp + 0x2c]
push ecx
xor ecx, ecx
mov bl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov eax, ebx
call fcn.0040ce40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4104ee
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 0x48]
push edx
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x410518
mov eax, dword [edi + 0x44]
mov edx, dword [eax]
mov ecx, dword [esi + 0x44]
mov dword [ecx], edx
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffff
add eax, 4
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov edx, dword [esi + 0x44]
lea eax, [ecx*4]
mov ecx, dword [edi + 0x44]
push eax
add ecx, 0xc
push ecx
add edx, 8
push edx
call fcn.0046ff50
mov eax, dword [esi + 0x48]
add esp, 0xc
call fcn.0040ab90
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x410316
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x44]
add eax, 0x20
jmp 0x41032f
mov edx, dword [esi + 0x48]
push edx
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4104ee
mov eax, dword [esi + 0x44]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [eax + 3], bl
mov byte [eax + 2], cl
mov byte [eax + 1], dl
mov dword [esp + 0x20], 0
jmp 0x4104b5
mov edx, dword [edi + 0x48]
push edx
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4104ee
mov ecx, dword [esp + 0x40]
xor edi, edi
test ecx, ecx
jbe 0x4103ed
movzx edx, byte [ebx + 0xa]
xor eax, eax
mov ah, byte [ebx + 8]
mov al, byte [ebx + 9]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 0xb]
shl eax, 8
or eax, edx
sub eax, ecx
mov dword [esp + 0x24], eax
jns 0x41039e
neg eax
mov dword [esp + 0x24], eax
mov esi, 1
cmp dword [esp + 0x14], esi
jle 0x4103ed
lea eax, [ebx + 0xe]
lea esp, [esp]
movzx edx, byte [eax]
xor ecx, ecx
mov ch, byte [eax - 2]
mov cl, byte [eax - 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
sub ecx, dword [esp + 0x40]
jns 0x4103d1
neg ecx
cmp ecx, dword [esp + 0x24]
jge 0x4103dd
mov edi, esi
mov dword [esp + 0x24], ecx
add esi, 1
add eax, 4
cmp esi, dword [esp + 0x14]
jl 0x4103b0
mov ecx, dword [esp + 0x40]
movzx eax, byte [ebx + edi*4 + 9]
mov ah, byte [ebx + edi*4 + 8]
movzx edx, byte [ebx + edi*4 + 0xa]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + edi*4 + 0xb]
shl eax, 8
or eax, edx
cmp byte [esp + 0x12], 0
je 0x410419
cmp eax, ecx
jne 0x4104b5
mov ebp, dword [esp + 0x3c]
mov dword [ebp], eax
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
call fcn.00409b30
cmp dword [ebp], eax
ja 0x4104e9
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp edi, ecx
jge 0x410447
mov edx, dword [ebx + eax*4 + 4]
mov dword [ebx + edi*4 + 8], edx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add eax, 0xffffffff
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 4], cl
mov edx, eax
mov ecx, eax
shr ecx, 8
shr edx, 0x10
mov byte [ebx + 6], cl
mov byte [ebx + 5], dl
mov byte [ebx + 7], al
mov eax, dword [ebp]
push edi
mov ecx, 1
call fcn.0040ce40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4104b0
mov edx, dword [edi]
mov esi, dword [edx + 0x48]
call fcn.0040b370
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
push ecx
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4104b0
mov edi, dword [edi]
test edi, edi
je 0x4104b0
mov eax, dword [edi + 0x48]
call fcn.0040ab90
mov byte [esp + 0x12], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4104c5
mov eax, dword [eax + 0x48]
call fcn.0040ab90
cmp byte [esp + 0x12], 0
mov dword [esp + 0x18], 0
je 0x4104ee
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
jmp 0x4100f0
mov ebp, eax
jmp 0x4104fe
mov ebp, 0xb
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4104fe
mov eax, dword [eax + 0x48]
call fcn.0040ab90
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41050e
mov eax, dword [eax + 0x48]
call fcn.0040ab90
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x48]
call fcn.0040ab90
jmp 0x4104ee
mov esi, dword [ebp]
call fcn.00409b30
mov esi, dword [esp + 0x3c]
add eax, 1
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x410557
lea ecx, [eax + 1]
mov dword [esi], ecx
movzx edi, word [ebp + 0x1c]
mov eax, 0x40000000
cdq
idiv edi
add eax, 1
cmp ecx, eax
jne 0x410557
add ecx, 1
mov dword [esi], ecx
cmp byte [ebp + 0x16], bl
je 0x41058a
mov ebx, dword [esi]
push ebx
mov edi, ebp
call fcn.0040c380
add esp, 4
cmp eax, ebx
jne 0x41058a
lea ecx, [ebx + 1]
mov dword [esi], ecx
movzx edi, word [ebp + 0x1c]
mov eax, 0x40000000
cdq
idiv edi
add eax, 1
cmp ecx, eax
jne 0x41058a
add ecx, 1
mov dword [esi], ecx
cmp dword [ebp + 0x18], 0
je 0x410595
mov edx, dword [esi]
mov dword [ebp + 0x18], edx
mov esi, dword [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push 0
push ecx
mov ebx, esi
call fcn.0040a930
add esp, 8
test eax, eax
jne 0x410510
mov ecx, dword [esp + 0x34]
cmp dword [ecx], eax
je 0x4105c0
lea eax, [ecx + 0x30]
jmp 0x4105c2
xor eax, eax
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x48], ecx
cmp esi, 1
setne cl
sub cl, 1
mov dword [eax + 0x4c], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ebp
mov dword [esi], eax
and ecx, 0x64
mov byte [eax + 8], cl
mov edx, dword [eax + 0x48]
push edx
call fcn.0040b190
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41050e
mov eax, dword [esi]
jmp 0x410502