Function at 0x412050
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 0x14]
sub esp, 0x168
xor ecx, ecx
nop
mov eax, dword [edx + 0x18]
push ebx
push esi
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x1c], ebx
push ebp
mov ebp, dword [edx + 0x10]
mov edi, dword [edx + 8]
mov al, byte [0x48ce18]
mov dword [esp + 0x24], edi
cmp al, cl
jne 0x4120aa
mov dword [0x48ce1c], 0x20
mov byte [0x48ce18], 1
mov dword [0x48ce20], ecx
mov eax, dword [edx]
cmp dword [eax + 8], ecx
je 0x4120aa
mov dword [0x48ce20], 0x10
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4120cb
mov esi, dword [esp + 0x24]
add esi, 4
xor edx, edx
mov dl, byte [esi]
add esi, 0x80
imul edx, ebp
add ecx, edx
dec eax
jne 0x4120b9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp edx, eax
jge 0x4120f9
mov eax, edx
mov edi, dword [esp + 0x24]
shl eax, 7
lea esi, [eax + edi + 4]
mov eax, dword [esp + 0x18]
sub eax, edx
xor edx, edx
mov dl, byte [esi]
add esi, 0x80
add ecx, edx
dec eax
jne 0x4120ea
mov edx, dword [esp + 0x188]
mov ebx, dword [0x48ce1c]
mov eax, dword [edx]
sub eax, ecx
mov ecx, dword [0x48ce20]
sub eax, ecx
mov esi, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x34], eax
mov dword [edx], eax
xor edx, edx
cmp esi, edx
jle 0x4121b6
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x17c]
mov ebx, dword [esp + 0x184]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
test ebp, ebp
jle 0x41218c
lea edi, [esp + edx + 0x38]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, ebp
jmp 0x412161
fstp dword [eax - 0x80]
fld dword [0x48cdb0]
fsub dword [ecx]
mov dword [esi], 0
mov byte [edi], 0
add edi, 0x20
add esi, 0x80
add ecx, 0x80
add eax, 0x80
dec ebx
jne 0x41215e
fstp dword [eax - 0x80]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 4
add ecx, 4
mov ebx, dword [esp + 0x1c]
inc edx
add ebx, 4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
cmp esi, edx
jg 0x412146
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov edx, 0xffffffff
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x497423f0
cmp eax, ebx
jle 0x412223
xor ecx, ecx
test ebp, ebp
jle 0x41221a
lea edi, [esp + ebx*4 + 0x78]
lea esi, [esp + ebx + 0x38]
mov al, byte [esi]
cmp al, 2
je 0x41220c
fld dword [edi]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x41220c
mov eax, dword [edi]
mov edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
add edi, 0x80
add esi, 0x20
inc ecx
cmp ecx, ebp
jl 0x4121ed
inc ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jg 0x4121df
cmp edx, 0xffffffff
jle 0x412414
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x184]
shl eax, 5
mov ecx, edx
shl ecx, 4
add eax, edx
mov esi, dword [edi + eax*4]
mov edi, dword [esp + 0x24]
add ecx, esi
mov dword [esp + 0x10], 0
mov bl, byte [edi + ecx*8 + 0xd]
lea edi, [edi + ecx*8]
xor ecx, ecx
mov byte [esp + 0x10], bl
mov cl, byte [edi + 0xc]
mov bl, byte [esp + eax + 0x38]
imul ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*2]
shl ecx, 2
test bl, bl
mov dword [esp + 0x1c], ecx
je 0x4122a2
xor ecx, ecx
mov bl, byte [edi + 5]
mov dword [esp + 0x10], 0
mov cl, byte [edi + 4]
mov byte [esp + 0x10], bl
imul ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*2]
shl ecx, 2
sub edi, ecx
mov dword [esp + 0x1c], edi
mov ecx, 1
mov ebx, dword [esp + 0x14]
sub ecx, ebx
mov bl, byte [esp + eax + 0x38]
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp bl, cl
je 0x4122c1
mov dword [esp + 0x14], ecx
jmp 0x412314
mov ebx, dword [esp + 0x180]
mov dword [esp + 0x14], 2
mov ecx, dword [ebx + eax*4]
mov edi, dword [ecx*4 + 0x48ce28]
lea ecx, [edi + edi*2]
add ecx, ecx
cmp ebp, 2
jne 0x412314
mov ebx, dword [esp + 0x20]
cmp ebx, edx
jg 0x412314
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x180]
shl edi, 5
add edi, edx
mov dword [esp + 0x14], 4
mov edi, dword [ebx + edi*4]
mov ebx, dword [edi*4 + 0x48ce28]
lea edi, [ebx + ebx*2]
lea ecx, [ecx + edi*2]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
add edi, ebx
mov ebx, dword [esp + 0x30]
add edi, ebx
mov ebx, dword [esp + 0x14]
add edi, ebx
mov ebx, dword [esp + 0x1c]
add edi, ecx
add edi, ebx
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jg 0x4123ac
inc esi
mov edi, dword [esp + 0x184]
mov ebx, dword [esp + 0x1c]
nop
mov dword [edi + eax*4], esi
mov edi, dword [esp + 0x30]
add edi, ebx
mov ebx, dword [esp + 0x2c]
add ebx, ecx
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov byte [esp + eax + 0x38], 1
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add ebx, ecx
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov ebx, edx
shl ebx, 4
add ebx, esi
mov cl, byte [edi + ebx*8 + 6]
mov ebx, dword [esp + 0x17c]
fld dword [ecx*4 + 0x48cdb4]
fsub dword [ebx + eax*4]
mov ebx, 1
mov ecx, edx
shl ecx, 7
fstp dword [esp + eax*4 + 0x78]
mov cl, byte [ecx + edi + 4]
shl ebx, cl
dec ebx
cmp ebx, esi
jg 0x4123b1
mov byte [esp + eax + 0x38], 2
mov ecx, dword [esp + 0x20]
cmp ecx, edx
jg 0x41240b
cmp ebp, 2
jne 0x41240b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x184]
shl ecx, 5
nop
lea esi, [ecx + edx]
mov ebx, dword [edi + eax*4]
mov al, byte [esp + eax + 0x38]
mov dword [edi + esi*4], ebx
lea ecx, [esi*4]
mov edi, dword [esp + 0x24]
mov byte [esp + esi + 0x38], al
mov esi, edx
xor eax, eax
shl esi, 4
add esi, ebx
mov ebx, dword [esp + 0x17c]
mov al, byte [edi + esi*8 + 6]
fld dword [eax*4 + 0x48cdb4]
fsub dword [ecx + ebx]
fstp dword [esp + ecx + 0x78]
cmp edx, 0xffffffff
jg 0x4121c4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub eax, ecx
mov edx, dword [esp + 0x2c]
sub eax, edx
mov ebx, dword [esp + 0x30]
sub eax, ebx
mov edx, dword [esp + 0x188]
mov esi, dword [esp + 0x18]
cmp esi, 0x20
mov dword [edx], eax
jge 0x41246c
mov edi, dword [esp + 0x184]
mov edx, 0x20
sub edx, dword [esp + 0x18]
lea esi, [edi + esi*4]
test ebp, ebp
jle 0x412466
mov ecx, esi
mov eax, ebp
mov dword [ecx], 0
add ecx, 0x80
dec eax
jne 0x412457
add esi, 4
dec edx
jne 0x41244f
xor esi, esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x4124b6
lea edi, [esp + 0x78]
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4124ad
mov edx, edi
mov ecx, eax
fld dword [edx]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x41249d
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
cmp eax, 0x80000000
jbe 0x4124a7
inc esi
add edx, 4
dec ecx
jne 0x41248a
add edi, 0x80
dec ebp
jne 0x41247e
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret