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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x5793b6
cmp byte [eax], 0x31
jne 0x5793b6
cmp edx, 0x38
jne 0x5793b6
test esi, esi
jne 0x5791c2
mov eax, 0xfffffffe
jmp 0x5793bb
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov dword [esi + 0x18], ecx
test eax, eax
je 0x5791b8
cmp dword [esi + 0x24], 0
je 0x5791b8
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x5791e1
mov dword [ebp - 0x1c], 6
test edi, edi
jns 0x5791f0
cmp edi, 0xfffffff1
jl 0x5791b8
neg edi
xor edx, edx
jmp 0x579202
mov edx, 1
cmp edi, 0xf
jle 0x579202
sub edi, 0x10
mov edx, 2
mov ecx, dword [ebp - 0x20]
dec ecx
cmp ecx, 8
ja 0x5791b8
lea ecx, [edi - 8]
cmp ecx, 7
ja 0x5791b8
cmp ebx, 8
jne 0x5791b8
cmp dword [ebp - 0x1c], 9
ja 0x5791b8
cmp dword [ebp - 0x24], 4
ja 0x5791b8
cmp edi, 8
jne 0x579238
cmp edx, 1
jne 0x5791b8
cmp edi, 8
jne 0x579238
mov edi, 9
mov dword [ebp - 0x28], edx
mov dword [esp + 8], 0x16c4
mov dword [esp + 4], 1
mov ecx, dword [esi + 0x28]
mov dword [esp], ecx
call eax
mov edx, dword [ebp - 0x28]
test eax, eax
mov ebx, eax
jne 0x579266
mov eax, 0xfffffffc
jmp 0x5793bb
mov dword [esi + 0x1c], eax
mov ecx, edi
mov dword [eax + 0x18], edx
xor edx, edx
mov dword [eax], esi
mov dword [eax + 4], 0x2a
xor eax, eax
mov dword [ebx + 0x1c], eax
mov eax, 1
shl eax, cl
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x2c], eax
mov edi, eax
lea eax, [eax - 1]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 7]
mov eax, 1
shl eax, cl
mov dword [ebx + 0x50], ecx
mov ecx, 3
mov dword [ebx + 0x4c], eax
dec eax
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x20]
add eax, 9
div ecx
mov dword [ebx + 0x58], eax
mov dword [esp + 8], 2
mov dword [esp + 4], edi
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
xor edx, edx
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x16c0], edx
lea ecx, [eax + 6]
mov eax, 1
shl eax, cl
mov dword [ebx + 0x169c], eax
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x169c]
cmp dword [ebx + 0x38], 0
mov dword [ebx + 8], eax
lea ecx, [edx*4]
mov dword [ebx + 0xc], ecx
je 0x579361
cmp dword [ebx + 0x40], 0
je 0x579361
cmp dword [ebx + 0x44], 0
je 0x579361
test eax, eax
jne 0x57937d
mov eax, dword [str.insufficient_memory]
mov dword [ebx + 4], 0x29a
mov dword [esi + 0x18], eax
mov dword [esp], esi
call fcn.0057905c
jmp 0x57925c
add eax, edx
lea edx, [edx + edx*2]
mov byte [ebx + 0x24], 8
mov dword [ebx + 0x1698], eax
mov eax, dword [ebp - 0x1c]
sub edx, 3
mov dword [ebx + 0x16a4], edx
mov dword [ebx + 0x84], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x88], eax
mov dword [ebp + 8], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00579620
mov eax, 0xfffffffa
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret