Function at 0x40d180
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d474
sub esp, 0x30
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40d45a
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x40d442
mov ecx, dword [esp + 0x34]
mov ebx, dword [ecx + 0x20]
mov ebx, dword [ebx + 0x10]
mov edx, dword [ebx]
mov ebx, dword [eax + 8]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x3c]
mov dword [esp], ebx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x38]
movzx ebx, byte [ecx + 4]
or ebx, 4
mov byte [ecx + 4], bl
mov ebx, dword [ecx + 0xc]
test ebx, ebx
je 0x40d3eb
mov edx, dword [esp + 0x34]
jmp 0x40d2f2
inc ebp
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
cmp ebp, 8
jae 0x40d26c
test byte [ebx], al
movzx esi, byte [ebx + ebp]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x40d226
test ecx, ecx
jne 0x40d1fa
mov ecx, ebx
mov edi, ebp
jmp 0x40d1fa
mov esi, ebx
lea ebx, [ebx + ebp*4 + 8]
mov ebx, dword [ebx]
mov edx, dword [esp + 0x3c]
cmp ebx, edx
je 0x40d23e
mov edx, dword [esp + 0x34]
mov ebx, esi
jmp 0x40d1fa
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x2e]
imul ebp, eax
mov eax, dword [esp + 0x38]
movzx ecx, byte [eax + 4]
lea edx, [ebp + esi + 0x28]
test cl, 4
je 0x40d42a
and ecx, 0xfffffffb
mov byte [eax + 4], cl
mov dword [esp + 0x40], edx
add esp, 0x30
ret
mov ebp, ebx
lea ebx, [ebx + esi - 4]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d28f
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
jmp 0x40d207
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov ebx, dword [esp + 0x38]
mov esi, dword [ebx + 0x10]
test esi, esi
jne 0x40d345
mov esi, dword [ebx]
inc esi
movzx ebp, byte [ebx + 5]
cmp esi, 8
jle 0x40d3b9
mov ecx, ebp
mov edx, 1
shl edx, cl
shr edx, 1
lea ebp, [edx + edx*2]
lea edx, [edx + ebp*4]
cmp esi, edx
seta dl
test dl, dl
je 0x40d328
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0040bf90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, edx
mov edx, dword [esp + 0x34]
movzx ebx, byte [ecx + 5]
mov ebp, ecx
mov ecx, ebx
mov esi, 1
shl esi, cl
lea ebx, [esi - 1]
and ebx, eax
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x40d3c2
movzx esi, word [edx + 0x30]
mov dword [esp + 0x1c], esi
imul ebx, esi
add ebx, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
jmp 0x40d27c
movzx edx, word [ebx + 6]
cmp cl, 0xf
jbe 0x40d336
mov ecx, 0xf
and ecx, 0xf
mov ebp, 1
shl ebp, cl
cmp dx, bp
jae 0x40d2d0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40d391
shr eax, 0x18
cmp al, 4
jae 0x40d38d
lea edx, [eax + 4]
test byte [ecx], al
mov ebp, edi
and edi, 7
mov byte [ecx + edi], dl
mov edx, ecx
lea edi, [ecx + ebp*4 + 8]
test byte [edi], al
mov ecx, dword [0xa8f2d0]
mov eax, dword [esp + 0x3c]
test ecx, ecx
jne 0x40d386
mov dword [edi], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov esi, edx
jmp 0x40d23e
call fcn.0044c9e0
jmp 0x40d37a
mov edx, eax
jmp 0x40d358
mov dword [esp], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
call fcn.0040a510
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
xor edi, edi
jmp 0x40d34d
mov ecx, ebp
xor edx, edx
jmp 0x40d2cc
mov dword [esp + 0x18], ebx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0040d650
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
jmp 0x40d311
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov dword [esp], ecx
call fcn.00409d00
mov eax, dword [0xa8f2d0]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x40d41a
mov edx, dword [esp + 0x38]
mov dword [edx + 0xc], ecx
mov eax, dword [esp + 0x14]
mov ecx, edx
jmp 0x40d1f1
mov edx, dword [esp + 0x38]
lea edi, [edx + 0xc]
mov eax, ecx
call fcn.0044c9e0
jmp 0x40d40f
lea eax, [0x79a70c]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00427af0
ud2
lea eax, [0x79a70c]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00427af0
ud2
lea eax, [0x745ea0]
mov dword [esp], eax
lea eax, [0x7fd3c0]
mov dword [esp + 4], eax
call fcn.004275c0
ud2
call fcn.0044b280
jmp fcn.0040d180