Function at 0x5421a0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
lea edi, [ebp - 0x24]
mov ecx, esi
mov esi, dword [ebp - 0x28]
push edi
call ebx
mov ecx, esi
push edi
call fcn.00542400
cmp byte [edi + 0xb], 0
jns 0x5421ea
push dword [ebp - 0x24]
call fcn.004ba1ee
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
xor ecx, ecx
dec ecx
push ecx
push edx
push eax
call fcn.00540eb0
add esp, 0xc
mov dword [esi + 0x44], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
lea ecx, [esi + 0x4c]
push edx
push eax
push ecx
call fcn.00543df0
add esp, 0xc
lea eax, [ebp - 0x12]
xor ecx, ecx
dec ecx
mov dword [eax - 2], ecx
mov dword [eax - 6], ecx
mov eax, dword [edi]
mov ebx, dword [eax + 0x14]
mov ecx, ebx
call dword [section..00cfg]
lea edi, [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16]
push eax
push edi
call ebx
movzx eax, word [edi + 6]
movzx ecx, word [edi + 2]
movzx edx, word [edi]
shl edx, 0x10
or edx, ecx
movzx ecx, word [edi + 4]
mov dword [esi + 0x5c], edx
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x60], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16]
push eax
push edi
call ebx
movzx eax, word [edi + 2]
movzx ecx, word [edi]
shl ecx, 0x10
or ecx, eax
movzx eax, word [edi + 6]
movzx edx, word [edi + 4]
mov edi, dword [ebp + 8]
mov dword [esi + 0x64], ecx
shl edx, 0x10
or edx, eax
mov dword [esi + 0x68], edx
mov eax, dword [edi]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
lea ecx, [eax - 2]
cmp ecx, 2
jae 0x5423aa
mov eax, 2
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], 0
xor eax, eax
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call ebx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x5423ba
push 0x48
call fcn.004ba1be
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00540420
mov dword [ebx], 0x570fe8
lea ecx, [ebx + 0x3c]
xor eax, eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0048f110
mov edi, dword [esi + 0xac]
mov dword [esi + 0xac], ebx
test edi, edi
je 0x542383
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 1
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x542396
mov dword [ebp - 0x20], eax
push eax
call fcn.004ba1ee
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004babe3
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp eax, 1
je 0x5422f8
xor eax, eax
jmp 0x5422f8
push 0x64
call fcn.004ba1be
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00540420
xorps xmm0, xmm0
movups xmmword [ebx + 0x40], xmm0
xor eax, eax
mov dword [ebx + 0x51], eax
mov dword [ebx + 0x4d], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x53445352
mov dword [ebx], 0x571078
mov ecx, ebx
push edi
call fcn.00541fe0
jmp 0x542361