Function at 0x491aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
test esi, esi
push edi
je case.default.0x491ad7
mov ebp, dword [esp + 0x58]
test ebp, ebp
je case.default.0x491ad7
mov ecx, 0x7cb478
call fcn.004d51b0
mov ebx, eax
mov eax, dword [esi]
dec eax
cmp eax, 4
ja case.default.0x491ad7
jmp dword [eax*4 + 0x491d28]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
push 0x10
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
mov al, byte [esi + 0x10]
push 0x545f4941
mov ecx, ebp
mov dword [esp + 0x24], edx
mov byte [esp + 0x28], al
call fcn.004b6ba0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dx, word [esi + 4]
movzx ax, byte [esi + 6]
mov cl, byte [esi + 7]
mov word [esp + 0x10], dx
mov dl, byte [esi + 0x10]
mov byte [esp + 0x14], cl
mov ecx, dword [esi + 0xc]
mov byte [esp + 0x1d], dl
push 0xe
lea edx, [esp + 0x14]
mov word [esp + 0x16], ax
mov eax, dword [esi + 8]
push edx
mov dword [esp + 0x21], ecx
push 0x575f4941
mov ecx, ebp
mov dword [esp + 0x21], eax
call fcn.004b6ba0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
movzx ax, byte [esi + 0x10]
mov word [esp + 0x2c], ax
cmp dword [esi + 4], 0x7f7fffff
jne 0x491b8c
mov dword [esp + 0x20], 0x7f7fffff
mov dword [esp + 0x24], 0x7f7fffff
mov dword [esp + 0x28], 0x7f7fffff
jmp 0x491ba1
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov cl, byte [esi + 0x1c]
mov byte [esp + 0x4e], cl
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x32]
push 0x775998
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x30
lea ecx, [esp + 0x24]
push ecx
push 0x455f4941
mov ecx, ebp
call fcn.004b6ba0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je case.default.0x491ad7
call fcn.004e22f0
test al, al
je case.default.0x491ad7
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
call dword [edx + 0x20]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x491cc4
movzx cx, byte [esi + 0x10]
cmp dword [esi + 4], 0x7f7fffff
mov word [esp + 0x2c], cx
jne 0x491c43
mov dword [esp + 0x20], 0x7f7fffff
mov dword [esp + 0x24], 0x7f7fffff
mov dword [esp + 0x28], 0x7f7fffff
jmp 0x491c58
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dl, byte [esi + 0x1c]
mov ecx, dword [esi + 0x14]
mov byte [esp + 0x4e], dl
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
lea ecx, [esp + 0x32]
push 0x775998
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x30
lea edx, [esp + 0x24]
push edx
push 0x465f4941
mov ecx, ebp
call fcn.004b6ba0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je case.default.0x491ad7
call fcn.004e22f0
test al, al
je case.default.0x491ad7
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x20]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 0x54444e43
mov ecx, ebp
call fcn.004b6ba0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov al, byte [esi + 8]
mov ecx, dword [esi + 4]
mov byte [esp + 0x40], al
mov edx, dword [ecx]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x24]
push 0x775998
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x21
lea ecx, [esp + 0x24]
push ecx
push 0x415f4941
mov ecx, ebp
call fcn.004b6ba0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret