Function at 0x57c8b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, edx
inc edx
test edx, edx
js 0x57c8d5
mov ecx, dword [eax + edx*4]
dec edx
push ecx
jns 0x57c8ce
mov dword [ebp + 0x10], esp
mov ecx, dword [ebp + 0x14]
inc ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [0x57c178]
call fcn.005740ec
lea eax, [ebp - 0xc]
mov edx, dword [0x57c1d4]
call fcn.00573e90
xor eax, eax
push ebp
push 0x57cb24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
push 1
push 0x2000
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x18], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
call fcn.005725f8
lea eax, [ebp - 0x24]
push eax
push 2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x57ca08
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edi, dword [esi + eax*8 + 8]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x20]
jae 0x57c9c6
xor edi, dword [ebp - 0x20]
xor dword [ebp - 0x20], edi
xor edi, dword [ebp - 0x20]
push 4
push 0x1000
push edi
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, edi
call fcn.00572734
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
call fcn.005725f8
inc ebx
dec dword [ebp - 0x28]
jne 0x57c9a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x57c19c]
call fcn.005746c4
add esp, 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x57ca49
push ebp
add eax, dword [ebp - 0x10]
call fcn.0057c718
pop ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x57ca60
push ebp
add eax, dword [ebp - 0x10]
call fcn.0057c794
pop ecx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x57ca9b
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
lea eax, [ebp - 0x24]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x24]
call fcn.0057c464
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 0x28]
jne 0x57ca72
cmp byte [ebp + 0x18], 0
je 0x57cacb
cmp dword [ebp - 8], 0
je 0x57cacb
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 8]
test al, al
jne 0x57cacb
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call fcn.0057c1f4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x57cae5
push ebp
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x7c]
add eax, dword [ebp - 0x10]
call fcn.0057c604
pop ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
mov ecx, dword [0x57c1d4]
call fcn.005741c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57cb2b
lea eax, [ebp - 0xc]
mov edx, dword [0x57c1d4]
call fcn.00573f60
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
inc ecx
mov edx, dword [0x57c178]
call fcn.00573fac
ret