Function at 0x40fba0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x2c]
push ebx
push ebp
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
push edi
test eax, eax
je 0x40fbd3
test dword [eax], 0x8000
je 0x40fbd3
mov eax, dword [eax + 8]
movzx eax, word [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x40fbd7
mov dword [esp + 0x10], ebx
push esi
mov esi, dword [esp + 0x40]
mov eax, 0x200
test esi, esi
je 0x40fbfc
test word [esi + 4], ax
jne 0x40fbfc
mov esi, dword [esi + 0xc]
test esi, esi
je 0x40fbfa
mov esi, dword [esi]
test word [esi + 4], ax
jne 0x40fbfc
xor esi, esi
mov ecx, dword [0x4df87c]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40fc24
mov eax, dword [eax + 0x1f8]
test eax, eax
je 0x40fc24
mov eax, dword [eax + 4]
jmp 0x40fc3d
mov eax, dword [0x4d4150]
test eax, eax
jne 0x40fc3d
push 1
push eax
call fcn.0041f690
add esp, 8
mov dword [0x4d4150], eax
push 0x5c
push eax
call fcn.00436250
mov edi, eax
add esp, 8
test edi, edi
jne 0x40fc5e
push eax
push eax
push eax
push 0x232e
call fcn.0044b600
add esp, 0x10
push 0x58
lea eax, [edi + 4]
mov dword [edi], 1
push 0
push eax
call fcn.004a3fe0
add esp, 0xc
mov edi, eax
cmp dword [0x4d402c], ebx
jne 0x40fc8b
push 0x4d402c
call fcn.00412c90
add esp, 4
push 0x4d4030
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cx, word [0x4d4050]
mov ax, word [0x4d404c]
cmp cx, ax
jne 0x40fcdc
add ax, 0x40
mov word [0x4d404c], ax
movzx eax, ax
lea eax, [eax*4 + 4]
push eax
push dword [0x4d4048]
call fcn.004343e0
mov cx, word [0x4d4050]
mov edx, eax
add esp, 8
mov dword [0x4d4048], edx
jmp 0x40fce2
mov edx, dword [0x4d4048]
inc cx
movzx eax, cx
mov word [edi + 0x34], cx
push 0x4d4030
mov word [0x4d4050], cx
mov dword [edx + eax*4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x34]
call fcn.0045fda0
push eax
mov dword [edi], eax
call fcn.00422590
add esp, 8
mov dword [edi + 4], eax
test esi, esi
jne 0x40fd3d
mov esi, dword [eax]
test esi, esi
je 0x40fd3d
mov eax, 0x200
test word [esi + 4], ax
jne 0x40fd3d
mov esi, dword [esi + 0xc]
test esi, esi
je 0x40fd3b
mov esi, dword [esi]
test word [esi + 4], ax
jne 0x40fd3d
xor esi, esi
mov dword [edi + 0xc], esi
cmp dword [esp + 0x44], ebx
je 0x40fd7c
test esi, esi
je 0x40fd73
mov ecx, dword [0x4d3fa8]
test ecx, ecx
je 0x40fd73
cmp dword [ecx + 0x18], ebx
je 0x40fd6c
mov edx, dword [ecx]
cmp esi, edx
jb 0x40fd6c
movzx eax, word [ecx + 4]
shl eax, 4
add eax, edx
cmp esi, eax
jb 0x40fdc6
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x40fd54
mov dword [edi + 0x10], ebx
xor eax, eax
mov word [edi + 0x48], ax
mov eax, 1
mov edx, eax
mov dword [esp + 0x2c], eax
cmp dx, word [esp + 0x14]
ja 0x410233
mov ecx, dword [esp + 0x3c]
movzx eax, ax
test dword [ecx], 0x8000
je 0x40fdea
test eax, eax
je 0x40fdea
mov edx, dword [ecx + 8]
cmp eax, dword [edx + 4]
ja 0x40fdea
lea ecx, [eax + eax*2]
mov eax, dword [edx]
lea eax, [eax + ecx*8]
add eax, 0xffffffe8
je 0x40fdea
mov ecx, dword [eax]
test cl, 2
je 0x40fdcf
mov eax, dword [eax + 8]
jmp 0x40fdec
mov dword [edi + 0x10], edx
mov ax, word [ecx + 4]
jmp 0x40fd78
test cl, 8
je 0x40fdd9
mov eax, dword [eax + 8]
jmp 0x40fdec
test cl, 0x10
je 0x40fdea
movsd xmm0, qword [eax + 8]
call fcn.004a245b
jmp 0x40fdec
xor eax, eax
movzx edx, ax
mov dword [esp + 0x24], edx
test dx, dx
je 0x410209
cmp dx, word [edi + 0x34]
jae 0x410209
cmp dword [edi + 8], 0
mov eax, dword [0x4d4048]
movzx ecx, dx
mov ebx, dword [eax + ecx*4]
mov dword [esp + 0x40], ebx
jne 0x40fe2a
push ebx
push edi
call fcn.0040f1d0
add esp, 8
jmp 0x410209
push edx
push edi
call fcn.0040f950
add esp, 8
test eax, eax
jne 0x410209
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40fe6f
mov ecx, dword [eax]
test ecx, 0x400
je 0x40fe52
mov eax, dword [eax + 8]
jmp 0x40fe71
test ecx, 0x8000
je 0x40fe62
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
jmp 0x40fe71
test cl, 4
je 0x40fe6f
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
jmp 0x40fe71
xor eax, eax
movzx ecx, ax
mov dword [esp + 0x20], ecx
movzx eax, cx
test cx, cx
je 0x40feb2
mov esi, eax
add esi, esi
cmp cx, word [esp + 0x1c]
jbe 0x40fea6
push esi
push ebp
call fcn.004343e0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
push esi
push 0
push ebp
call fcn.004a3fe0
add esp, 0xc
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0x44]
jae 0x40fedd
nop dword [eax]
mov eax, dword [ebx + 0x2c]
movzx ecx, si
push 1
movzx eax, word [eax + ecx*4]
push eax
push edi
call fcn.0040f3d0
inc esi
add esp, 0xc
cmp si, word [ebx + 0x44]
jb 0x40fec0
push 1
push dword [esp + 0x28]
push edi
call fcn.0040f3d0
movzx ecx, word [ebx + 0x3e]
add esp, 0xc
test cx, cx
je 0x40ff73
xor eax, eax
xor edx, edx
mov dword [esp + 0x44], eax
cmp dx, cx
jae 0x40ff73
mov ebp, dword [esp + 0x40]
movzx eax, ax
mov ebp, dword [ebp + 0x14]
lea ebx, [eax + eax*2]
cmp word [ebp + ebx*4 + 4], 1
jne 0x40ff60
movzx eax, word [edi + 0x44]
movzx esi, word [ebp + ebx*4 + 0xa]
test ax, ax
je 0x40ff47
mov edx, dword [edi + 0x2c]
nop dword [eax + eax]
add eax, 0xffff
movzx ecx, ax
cmp word [edx + ecx*4], si
je 0x410037
test ax, ax
jne 0x40ff30
xor eax, eax
push esi
push eax
movzx eax, word [ebp + ebx*4 + 6]
push eax
push 1
push dword [ebp + ebx*4]
push edi
call fcn.0040e1b0
add esp, 0x18
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x44], eax
cmp ax, word [ebx + 0x3e]
jb 0x40ff02
movzx eax, word [ebx + 0x50]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4101ca
xor ebp, ebp
mov dword [esp + 0x44], ebp
nop dword [eax]
mov eax, dword [ebx + 8]
mov eax, dword [eax + ebp]
test eax, eax
je 0x4101b8
push eax
push edi
call fcn.0040f020
mov esi, eax
add esp, 8
cmp dword [esi], 0
je 0x410048
mov ebp, dword [esi + 8]
cmp ebp, 0x4d0fb8
jne 0x40ffed
movzx eax, word [edi + 0x44]
test ax, ax
je 0x40ffe3
mov edx, dword [edi + 0x2c]
movzx ebx, word [esi + 0x18]
nop
add eax, 0xffff
movzx ecx, ax
cmp word [edx + ecx*4], bx
je 0x410041
test ax, ax
jne 0x40ffd0
xor eax, eax
mov ebx, dword [esp + 0x40]
mov word [esi + 0x1a], ax
cmp ebp, 0x4d0fa8
je 0x41004e
mov ax, word [0x4d4028]
test ax, ax
je 0x410006
cmp word [esi + 0x14], ax
je 0x41004e
mov eax, dword [ebx + 8]
mov ecx, 0x600
mov ebp, dword [esp + 0x44]
test word [eax + ebp + 0x16], cx
je 0x410025
mov eax, 0x400
or word [esi + 0x16], ax
mov eax, dword [ebx + 8]
push edi
add eax, ebp
push esi
push eax
call fcn.004104b0
add esp, 0xc
jmp 0x4101b8
movzx eax, word [edx + ecx*4 + 2]
jmp 0x40ff49
movzx eax, word [edx + ecx*4 + 2]
jmp 0x40ffe5
inc word [edi + 0x3c]
jmp 0x410052
mov ebp, dword [esp + 0x44]
mov eax, dword [ebx + 8]
push edi
push esi
push esi
movups xmm0, xmmword [eax + ebp]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + ebp + 0x10]
movups xmmword [esi + 0x10], xmm0
call fcn.004104b0
add esp, 0xc
test eax, eax
jne 0x4101b8
mov eax, dword [esi + 8]
cmp eax, 0x4d0ff8
je 0x410089
cmp eax, 0x4d1008
jne 0x41008c
mov eax, dword [esi + 0xc]
cmp eax, 0x4d0f58
je 0x4100f4
cmp eax, 0x4d0f68
je 0x4100f4
cmp eax, 0x4d0f38
je 0x4100ac
cmp eax, 0x4d0f48
jne 0x4101af
movzx eax, word [edi + 0x44]
test ax, ax
je 0x4100d3
mov edx, dword [edi + 0x2c]
movzx ebx, word [esi + 0x14]
nop dword [eax]
add eax, 0xffff
movzx ecx, ax
cmp word [edx + ecx*4], bx
je 0x4100e2
test ax, ax
jne 0x4100c0
mov ebx, dword [esp + 0x40]
xor eax, eax
mov word [esi + 0x1a], ax
jmp 0x4101af
movzx eax, word [edx + ecx*4 + 2]
mov ebx, dword [esp + 0x40]
mov word [esi + 0x1a], ax
jmp 0x4101af
movzx eax, word [esi + 0x18]
mov ecx, eax
cmp ax, word [esp + 0x20]
jbe 0x41011b
push 0
push str.__clsNew__
push 0
push 0x232d
call fcn.0044b600
movzx ecx, word [esi + 0x18]
add esp, 0x10
movzx edx, cx
movzx eax, cx
mov ecx, dword [esp + 0x10]
cmp word [ecx + edx*2 - 2], 0
jne 0x410161
mov eax, dword [edi + 0x18]
test dword [eax], 0x8000
je 0x410140
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
jmp 0x410142
xor eax, eax
inc eax
mov word [ecx + edx*2 - 2], ax
movzx eax, word [esi + 0x18]
movzx eax, word [ecx + eax*2 - 2]
push eax
push dword [edi + 0x18]
call fcn.00420760
movzx eax, word [esi + 0x18]
add esp, 8
movzx edx, word [esi + 0x1a]
movzx ecx, ax
test dx, dx
je 0x41019f
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
movzx eax, ax
push 0
movzx eax, word [ecx + eax*2 - 2]
push eax
mov eax, edx
push 2
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x14]
push dword [eax + ecx*4 - 0xc]
push edi
call fcn.0040e1b0
movzx ecx, word [esi + 0x18]
add esp, 0x18
mov word [esi + 0x1a], ax
movzx eax, cx
mov ecx, dword [esp + 0x10]
mov ax, word [ecx + eax*2 - 2]
mov word [esi + 0x18], ax
mov eax, 0x80
or word [esi + 0x16], ax
add ebp, 0x20
sub dword [esp + 0x28], 1
mov dword [esp + 0x44], ebp
jne 0x40ff90
cmp word [ebx + 0x38], 0
mov edx, 1
je 0x4101da
mov word [edi + 0x38], dx
cmp word [ebx + 0x36], 0
je 0x4101e5
mov word [edi + 0x36], dx
mov eax, dword [ebx + 0x30]
or dword [edi + 0x30], eax
cmp word [ebx + 0x4a], 0
je 0x4101f6
mov word [edi + 0x4a], dx
mov eax, dword [esp + 0x18]
cmp dword [ebx + 0x24], 0
mov ebp, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp ax, word [esp + 0x14]
jbe 0x40fd92
test ebp, ebp
je 0x41022f
lea eax, [ebp - 4]
push eax
push 0
call fcn.00435bb0
add esp, 8
mov ebx, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x410324
push 7
push edi
call fcn.0040f4c0
push 0
call fcn.00422fe0
mov esi, eax
add esp, 0xc
test dword [esi], 0xb405
je 0x410262
push esi
call fcn.004237d0
add esp, 4
push 0x4ba898
push 0x10
call fcn.00422930
xor ecx, ecx
push ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [esi], 0x8000
mov dword [esi + 8], eax
mov dword [edi + 0x18], esi
call fcn.00422fe0
mov esi, eax
add esp, 0xc
test dword [esi], 0xb405
je 0x4102ab
push esi
call fcn.004237d0
add esp, 4
push 0x4ba898
push 0x10
call fcn.00422930
xor ecx, ecx
push ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [esi], 0x8000
mov dword [esi + 8], eax
mov dword [edi + 0x1c], esi
call fcn.00422fe0
mov esi, eax
add esp, 0xc
test dword [esi], 0xb405
je 0x4102f4
push esi
call fcn.004237d0
add esp, 4
push 0x4ba898
push 0x10
call fcn.00422930
add esp, 8
xor ecx, ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [esi], 0x8000
mov dword [esi + 8], eax
mov dword [edi + 0x20], esi
movzx eax, word [edi + 0x40]
mov word [edi + 0x42], ax
movzx eax, word [edi + 0x34]
push 0
push eax
push edi
call fcn.0040f3d0
movzx eax, word [edi + 0x40]
add esp, 0xc
add ax, word [esp + 0x38]
cmp word [edi + 0x4a], 0
movzx eax, ax
mov word [edi + 0x40], ax
pop esi
je 0x410359
inc eax
mov word [edi + 0x4a], ax
test ebx, ebx
je 0x41036b
cmp dword [edi + 0x24], 0
jne 0x41036b
call fcn.0042ebb0
mov dword [edi + 0x24], eax
mov ax, word [edi + 0x34]
pop edi
pop ebp
pop ebx
add esp, 0x20
ret