Function at 0x40402c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov dword [ebp - 0xac], 0x6af858
mov dword [ebp - 0xa8], esp
mov dword [ebp - 0xb0], eax
mov word [ebp - 0xa4], 0
mov dword [ebp - 0x98], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0xb4], ecx
lea eax, [ebp - 0xb4]
mov dword fs:[0], eax
call fcn.0040a35c
mov edx, dword [0x6af694]
test edx, edx
je 0x40409b
push 0x6fc868
call sub.KERNEL32.DLL_EnterCriticalSection
call fcn.00403f0c
mov ecx, dword [0x6af6a8]
test ecx, ecx
jne 0x4040b6
mov eax, dword [ebp - 0xb4]
mov dword fs:[0], eax
jmp 0x404452
mov word [ebp - 0xa4], 8
xor eax, eax
lea edx, [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, 0x6ff378
mov dword [ebp - 0x38], eax
mov eax, 0x6ff36c
mov ecx, dword [edx + 8]
cmp eax, 0x6ff36c
mov dword [ebp - 0xd4], ecx
je 0x4040ee
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x30]
mov eax, 0x6ff378
mov dword [ebp - 0x28], eax
mov eax, 0x6ff36c
mov ecx, dword [edx + 8]
cmp eax, 0x6ff36c
mov dword [ebp - 0xe4], ecx
je 0x404123
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0x98]
xor edx, edx
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xb8], 0x40
mov dword [ebp - 0xbc], 1
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb8]
cmp edx, ecx
jbe 0x404164
lea eax, [ebp - 0xbc]
jmp 0x40416a
lea eax, [ebp - 0xb8]
mov edx, dword [eax]
mov ebx, dword [0x6af6a8]
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x40]
inc dword [ebp - 0x98]
inc dword [ebp - 0x98]
add ebx, 0x90
mov word [ebp - 0xa4], 0x38
lea eax, [ebx + 0x50]
push eax
push edx
call fcn.0069a2e0
add esp, 8
lea ecx, [ebx + 0x60]
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0069a2e0
add esp, 8
lea edx, [ebx + 0x70]
push edx
lea ecx, [ebp - 0x20]
push ecx
call fcn.004045a0
add esp, 8
mov al, byte [ebx]
mov byte [ebp - 0x90], al
mov dl, byte [ebx + 1]
mov byte [ebp - 0x8f], dl
mov cl, byte [ebx + 2]
mov byte [ebp - 0x8e], cl
mov al, byte [ebx + 3]
mov byte [ebp - 0x8d], al
mov dl, byte [ebx + 4]
mov byte [ebp - 0x8c], dl
mov cl, byte [ebx + 5]
mov byte [ebp - 0x8b], cl
mov al, byte [ebx + 6]
mov byte [ebp - 0x8a], al
mov dl, byte [ebx + 7]
mov byte [ebp - 0x89], dl
mov cl, byte [ebx + 8]
mov byte [ebp - 0x88], cl
mov al, byte [ebx + 9]
mov byte [ebp - 0x87], al
mov dl, byte [ebx + 0xa]
mov byte [ebp - 0x86], dl
mov cl, byte [ebx + 0xb]
mov byte [ebp - 0x85], cl
mov al, byte [ebx + 0xc]
mov byte [ebp - 0x84], al
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x80], edx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x78], eax
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x74], edx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebx + 0x28]
mov dword [ebp - 0x68], edx
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x60], eax
mov edx, dword [ebx + 0x34]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x54], eax
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x48], eax
mov edx, dword [ebx + 0x4c]
mov dword [ebp - 0x44], edx
mov dword [0x6af698], 1
mov dword [0x6af69c], 5
mov cl, byte [ebp - 0x89]
test cl, cl
je 0x4042c3
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
mov dword [0x6af698], eax
mov dword [0x6af69c], edx
mov ecx, dword [0x6af698]
test ecx, ecx
jg 0x4042d7
mov dword [0x6af698], 1
mov eax, dword [0x6af698]
cmp eax, 0xc8
jle 0x4042ed
mov dword [0x6af698], 0xc8
mov edx, dword [0x6af69c]
test edx, edx
jg 0x404301
mov dword [0x6af69c], 1
mov ecx, dword [0x6af69c]
cmp ecx, 0x15180
jle 0x404319
mov dword [0x6af69c], 0x15180
dec dword [ebp - 0x98]
dec dword [ebp - 0x98]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040445c
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0067ac7c
pop ecx
dec dword [ebp - 0x98]
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4043c4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x40438c
mov ebx, dword [ebp - 0x28]
add ebx, 0xfffffff4
cmp ebx, 0x6ff36c
je 0x404383
cmp ebx, 0x6ff36c
je 0x40437c
push ebx
call sub.KERNEL32.DLL_InterlockedDecrement
mov eax, dword [ebx]
inc eax
jmp 0x404388
mov eax, 1
jmp 0x404388
mov eax, 1
test eax, eax
jne 0x4043c4
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff4
mov dword [ebp - 0xc0], edx
mov esi, dword [ebp - 0x28]
add esi, 0xfffffff4
push esi
call fcn.0067ac7c
xor eax, eax
pop ecx
mov edi, eax
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc4], edx
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ecx + 8]
mov dword [ebp - 0xf4], eax
dec dword [ebp - 0x98]
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x404445
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x40440d
mov ebx, dword [ebp - 0x38]
add ebx, 0xfffffff4
cmp ebx, 0x6ff36c
je 0x404404
cmp ebx, 0x6ff36c
je 0x4043fd
push ebx
call sub.KERNEL32.DLL_InterlockedDecrement
mov eax, dword [ebx]
inc eax
jmp 0x404409
mov eax, 1
jmp 0x404409
mov eax, 1
test eax, eax
jne 0x404445
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff4
mov dword [ebp - 0xc8], edx
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff4
push esi
call fcn.0067ac7c
xor eax, eax
pop ecx
mov edi, eax
lea edx, [ebp - 0x40]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0xcc], edx
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0xb4]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret