Function at 0x59e148
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x1c
call fcn.006977b0
mov ecx, dword [esp + 0x1c]
mov esi, ecx
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
cmp ebp, 3
je 0x59e213
cmp ebp, 7
je 0x59e213
cmp ebp, 6
je 0x59e213
cmp ebp, 5
je 0x59e213
cmp ebp, 4
je 0x59e213
cmp ebp, 8
je 0x59e4f0
cmp ebp, 9
je 0x59e4d7
push 1
mov ecx, esi
call fcn.0050aa14
test ebp, ebp
je 0x59e1f9
cmp ebp, 0xa
je 0x59e48d
cmp ebp, 2
je 0x59e45d
cmp ebp, 1
je 0x59e443
push ebx
lea ecx, [esp + 4]
xor edx, edx
call fcn.004f67a0
xor edx, edx
lea eax, [esp]
push edx
push ebx
push edx
push eax
mov ebx, dword [esp + 0x4c]
push ebx
push edx
push ebp
mov ecx, esi
call fcn.0059e148
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
push 0x6c5270
push 1
mov ecx, esi
call fcn.0050ce14
xor eax, eax
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
mov eax, 0x186a0
xor edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
push edx
lea ecx, [esp + 4]
call fcn.0050afb4
movzx eax, word [esp + 0x44]
test eax, eax
je 0x59e27b
push 4
push ebx
push 0
push ebx
lea ecx, [esp + 0x10]
movzx edx, word [esp + 0x54]
call fcn.0058eee4
test eax, eax
jne 0x59e27b
mov eax, dword [esp + 6]
cmp eax, 3
je 0x59e26b
lea ecx, [esp]
mov edx, dword [esp]
call dword [eax*4 + 0x6f0424]
mov eax, dword [esp]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp ebp, 6
je 0x59e285
cmp ebp, 4
jne 0x59e2be
test ebx, ebx
je 0x59e2be
mov edx, dword [ebx]
movzx eax, word [0x7bd0ac]
push eax
mov ecx, ebx
call dword [edx + 0x20]
test eax, eax
je 0x59e2be
lea edi, [esp]
mov edx, dword [esp + 0x4c]
push edx
push edi
mov ecx, eax
call fcn.00503088
mov eax, dword [esp + 6]
mov ecx, dword [esp]
call dword [eax*4 + 0x6f18fc]
test eax, eax
je 0x59e2c5
xor edi, edi
jmp 0x59e38f
mov ecx, dword [esp]
call fcn.00417280
mov edi, eax
test edi, edi
je 0x59e2be
mov edx, dword [ebx]
movzx eax, word [0x7bd0fc]
push eax
mov ecx, ebx
call dword [edx + 0x20]
mov ecx, eax
test ecx, ecx
je 0x59e2be
lea eax, [esp]
mov edx, dword [esp + 0x4c]
push edx
push eax
call fcn.00503088
mov eax, dword [esp + 6]
mov ecx, dword [esp]
call dword [eax*4 + 0x6f18fc]
test eax, eax
je 0x59e30f
xor edi, edi
jmp 0x59e38f
mov edx, dword [esp]
test edx, edx
je 0x59e322
movsx eax, byte [edx]
test eax, eax
je 0x59e322
cmp eax, 4
jne 0x59e326
xor edi, edi
jmp 0x59e38f
mov ecx, edi
call fcn.00417250
test eax, eax
je 0x59e335
xor edi, edi
jmp 0x59e38f
mov edi, dword [esp]
test edi, edi
je 0x59e38f
mov edx, dword [ebx]
movzx eax, word [0x7bd0b4]
push eax
mov ecx, ebx
call dword [edx + 0x20]
test eax, eax
je 0x59e38f
lea ebx, [esp]
mov edx, dword [esp + 0x4c]
push edx
push ebx
mov ecx, eax
call fcn.00503088
mov eax, dword [esp + 6]
mov ecx, dword [esp]
call dword [eax*4 + 0x6f18fc]
test eax, eax
jne 0x59e38f
mov ebx, dword [esp]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
add ebx, 0x14
push ebx
lea ecx, [esp + 0x18]
call fcn.0053ba94
mov eax, dword [esp + 0xc]
add eax, 0xfffe7960
or eax, dword [esp + 0x10]
je 0x59e509
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
lea eax, [ebp - 3]
cmp eax, 4
ja case.default.0x59e3b9
mov eax, dword [eax*4 + 0x6d529c]
jmp eax
mov eax, dword [esp + 0x40]
push eax
push esi
mov ecx, dword [esp + 0x44]
call fcn.005e9bf8
jmp case.default.0x59e3b9
push edi
push 0xffffffffffffffff
push ecx
push edx
mov eax, dword [esp + 0x50]
push eax
mov edx, dword [esp + 0x4c]
push edx
push esi
mov ecx, dword [esp + 0x58]
call fcn.005fa9f4
jmp case.default.0x59e3b9
push 0xffffffffffffffff
push ecx
push edx
mov eax, dword [esp + 0x4c]
push eax
mov edx, dword [esp + 0x48]
push edx
push esi
mov ecx, dword [esp + 0x54]
call fcn.005f64f4
jmp case.default.0x59e3b9
push edi
push ecx
push edx
mov eax, dword [esp + 0x4c]
push eax
mov edx, dword [esp + 0x48]
push edx
push esi
mov ecx, dword [esp + 0x54]
call fcn.00575348
jmp case.default.0x59e3b9
push 1
push 0
push ecx
push edx
mov eax, dword [esp + 0x50]
push eax
push esi
mov ecx, dword [esp + 0x54]
call fcn.0053ec80
lea ecx, [esp]
call fcn.0050b06c
xor eax, eax
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
mov eax, dword [esp + 0x3c]
push eax
push 1
mov ecx, esi
call fcn.0050ce14
xor eax, eax
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
lea edx, [esp]
mov eax, dword [esp + 0x3c]
push dword [eax]
push 0x6c4d90
push edx
call fcn.00697936
add esp, 0xc
lea eax, [esp]
push eax
push 1
mov ecx, esi
call fcn.0050ce14
xor eax, eax
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
cmp eax, 2
jne 0x59e4a8
push 0x6c5d78
push 1
mov ecx, esi
call fcn.0050ce14
jmp 0x59e4cb
cmp eax, 1
jne 0x59e4bd
push 0x6c5d7c
push 1
mov ecx, esi
call fcn.0050ce14
jmp 0x59e4cb
push 0x6c5270
push 1
mov ecx, esi
call fcn.0050ce14
xor eax, eax
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
mov eax, dword [esp + 0x40]
push eax
push esi
mov ecx, dword [esp + 0x44]
call fcn.0056c1c0
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
mov eax, dword [esp + 0x40]
push eax
push esi
mov ecx, dword [esp + 0x44]
call fcn.004f02ac
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret 0x1c
mov eax, dword [esp + 0x14]
add eax, 0xfffe7960
or eax, dword [esp + 0x18]
jne 0x59e3a2
xor edx, edx
xor ecx, ecx
jmp 0x59e3aa