Function at 0x49bd90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8228
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
mov edi, dword [eax + 0x80]
test edi, edi
je 0x49c090
mov eax, ebx
call fcn.0049b4e0
test eax, eax
je 0x49c090
call fcn.0049b560
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49c090
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x49c090
cmp dword [esi + 4], 0
jne 0x49be13
cmp dword [esi + 0xc], 0
je 0x49c090
lea ecx, [esp + 0x10]
push ecx
call fcn.0040b610
mov dword [esp + 0x30], 0
mov edi, dword [esi + 0xc]
call fcn.0049b560
lea edx, [esp + 0x10]
push edx
call fcn.0049afb0
add esp, 4
lea edi, [esp + 0x10]
call fcn.0041c6f0
mov eax, dword [esp + 0x10]
push 0x2e
push eax
call fcn.00597077
add esp, 8
test eax, eax
je 0x49be87
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x49be87
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov edx, edi
call fcn.004453f0
mov byte [esp + 0x30], 1
mov ebx, edi
call fcn.0040d9a0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x20]
call fcn.0040b720
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
test edi, edi
jne 0x49bea6
mov edi, esi
test esi, esi
je 0x49c07f
mov ebx, dword [ebp + 8]
call fcn.0049b560
mov dword [esp + 0x18], eax
test eax, eax
je 0x49c07f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x49c07f
mov edi, esi
call fcn.0049b560
test eax, eax
je 0x49c07f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x49c07f
mov esi, dword [esp + 0x18]
cmp dword [esi], eax
je 0x49c05d
mov eax, dword [0x6e9718]
mov edx, dword [eax + 0xc]
mov ecx, 0x6e9718
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 3
mov edi, dword [esi]
test edi, edi
jns 0x49bf70
movzx eax, di
push eax
push str.o:_u
lea edi, [esp + 0x1c]
call fcn.00421d40
mov ecx, dword [ebp + 0xc]
add esp, 8
push ecx
lea ecx, [esp + 0x14]
call fcn.0049c2e0
mov esi, eax
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 4]
lea edx, [esp + 0x14]
push edx
push eax
push edi
call fcn.0049c990
mov ecx, 1
mov edx, esi
mov ebx, eax
call fcn.0049ca40
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ecx, dword [ecx - 0xc]
jmp 0x49c01f
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x24]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
xor edx, edx
test ecx, ecx
jbe 0x49c024
lea esp, [esp]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x49bfa0
mov ebx, dword [eax + 8]
add ebx, esi
cmp edi, ebx
jb 0x49bfaa
inc edx
add eax, 0x28
cmp edx, ecx
jb 0x49bf90
jmp 0x49c024
mov edx, dword [ebp + 8]
mov ecx, esi
sub ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x28]
sub eax, ecx
add edi, eax
je 0x49c024
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x49c024
lea ecx, [esp + 0x14]
lea eax, [edi + 2]
push ecx
call fcn.0049afb0
add esp, 4
lea edi, [esp + 0x14]
call fcn.0041c6f0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.0049c2e0
mov esi, eax
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
call fcn.0049c990
mov ecx, 1
mov edx, esi
mov ebx, eax
call fcn.0049ca40
mov edx, dword [esp + 0x14]
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ecx, dword [edx - 0xc]
mov eax, dword [ebp + 0x10]
add dword [eax], ecx
mov esi, dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c054
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 0
jne 0x49bef7
add dword [esp + 0x1c], 0x14
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040b720
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
jmp 0x49be03
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040b720
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc