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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a57c9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6d48e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x954], 0
je 0x583e3f
mov ecx, dword [0x6e8d3c]
push 1
push 0
call fcn.00589ae0
mov ecx, dword [ebx + 0x960]
test ecx, ecx
je 0x583a1c
lea eax, [ebx + 0xa0d]
push eax
call fcn.00463270
mov ecx, dword [ebx + 0x958]
test ecx, ecx
je 0x583e3f
add ecx, 0x934
call fcn.0048a680
mov eax, dword [ebx + 0x958]
mov dword [eax + 0x9e8], 1
mov eax, dword [ebx + 0x958]
mov dword [eax + 0x9ec], 1
mov eax, dword [ebx + 0x958]
mov dword [eax + 0x9e4], 4
cmp word [ebx + 0xa09], 0
je 0x583e3f
mov esi, dword [ebx + 0x2288]
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 0x228c]
jge 0x583dda
mov eax, esi
lea edi, [ebx + 0xa7f]
shl eax, 4
sub eax, esi
lea eax, [eax*4 + 0x64]
mov dword [ebp - 0x14], eax
lea eax, [esi + 2]
imul eax, eax, 0x3200
mov dword [ebp - 0x10], eax
mov eax, esi
shl eax, 5
sub eax, esi
lea edi, [edi + eax*2]
push 0xa64
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x583add
push 8
mov ecx, eax
call fcn.004581e0
mov esi, eax
jmp 0x583adf
xor esi, esi
cmp dword [edi - 0x32], 1
mov dword [ebp - 4], 0xffffffff
jne 0x583afb
mov ecx, dword [0x6e8ee4]
lea eax, [edi - 0x26]
push eax
call fcn.0042f5c0
mov ecx, dword [edi - 0x32]
cmp ecx, 3
jg 0x583b2d
push 8
lea eax, [esi + 0x14]
push eax
lea eax, [ecx + 0x1c]
mov ecx, 0x6f8178
push eax
call fcn.0045cfe0
mov eax, dword [esi + 4]
push 0x5b0c00
push dword [eax]
mov eax, dword [sym.imp.MSVCR120.dll_sprintf]
call eax
add esp, 8
jmp 0x583b5e
cmp ecx, 8
jg 0x583b49
push 8
lea eax, [esi + 0x14]
mov ecx, 0x6f8178
push eax
push 0x20
call fcn.0045cfe0
push dword [edi - 0x32]
jmp 0x583b4a
push ecx
mov eax, dword [esi + 4]
push 0x5addf0
push dword [eax]
mov eax, dword [sym.imp.MSVCR120.dll_sprintf]
call eax
add esp, 0xc
cmp dword [edi - 4], 0
jle 0x583b7a
push 8
lea eax, [esi + 0x34]
mov ecx, 0x6f8178
push eax
push 0x66
call fcn.0045cfe0
cmp dword [edi - 4], 0
jne 0x583b8e
push 8
lea eax, [esi + 0x34]
mov ecx, 0x6f8178
push eax
push 0x21
call fcn.0045cfe0
cmp dword [edi - 4], 0
jge 0x583ba6
push 8
lea eax, [esi + 0x34]
mov ecx, 0x6f8178
push eax
push 0x67
call fcn.0045cfe0
push dword [edi - 4]
mov eax, dword [esi + 4]
push str.___d
push dword [eax + 4]
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp dword [edi], 0x40
jne 0x583bd4
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f8178
push eax
push 0x22
call fcn.0045cfe0
cmp dword [edi], 0x41
jne 0x583beb
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f8178
push eax
push 0x22
call fcn.0045cfe0
cmp dword [edi], 0x80
jne 0x583c05
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f8178
push eax
push 0x23
call fcn.0045cfe0
cmp dword [edi], 0x81
jne 0x583c1f
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f8178
push eax
push 0x23
call fcn.0045cfe0
cmp dword [edi], 0
jne 0x583c36
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f8178
push eax
push 0x21
call fcn.0045cfe0
mov eax, dword [esi + 4]
push 0x5b0c00
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 8
cmp dword [edi - 0x2e], 0
je 0x583cc9
mov eax, dword [0x6e8bf4]
test al, 1
jne 0x583c86
or eax, 1
mov dword [0x6e8bf4], eax
mov ecx, 0x6e8bc8
mov dword [ebp - 4], 1
call fcn.00525750
push 0x5a61d0
call fcn.00599173
add esp, 4
mov dword [ebp - 4], 0xffffffff
push dword [edi - 0x2e]
mov ecx, 0x6e8bc8
call fcn.00525970
test eax, eax
je 0x583cc9
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x583cc9
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov dword [esi + 0x78], eax
mov eax, dword [ecx + 8]
movdqu xmm0, xmmword [eax + 8]
movdqu xmmword [esi + 0x7c], xmm0
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x8c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x90], eax
mov eax, dword [esi + 4]
push 0x5b0c00
push dword [eax + 0xc]
call dword [sym.imp.MSVCR120.dll_sprintf]
mov eax, dword [edi - 0x32]
add esp, 8
cmp eax, 0xa
jg 0x583d3d
cmp eax, 3
jg 0x583d12
mov ecx, dword [ebx + 0x894]
mov eax, 0x51eb851f
imul ecx, dword [ebx + 0x890]
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [ebp - 0x10]
or edx, dword [ebp - 0x14]
or edx, 0xff0000
jmp 0x583d37
cmp eax, 8
jg 0x583d3d
mov ecx, dword [ebx + 0x894]
mov eax, 0x51eb851f
imul ecx, dword [ebx + 0x890]
mul ecx
shr edx, 5
shl edx, 0x18
or edx, 0xf9fce1
mov eax, dword [esi + 8]
mov dword [eax + 0x10], edx
mov eax, dword [esi + 8]
mov dword [eax + 0x14], 0xfffffacd
mov eax, dword [esi + 8]
mov dword [eax + 0x18], 0xfffffacd
mov eax, dword [esi + 8]
mov dword [eax + 0x1c], 0xffffffff
lea eax, [edi - 0x26]
push eax
mov eax, dword [esi + 4]
push dword [eax + 0x10]
call dword [sym.imp.MSVCR120.dll_sprintf]
push dword [edi + 4]
mov eax, dword [esi + 4]
push 0x5addf0
push dword [eax + 0x14]
call dword [sym.imp.MSVCR120.dll_sprintf]
push dword [edi + 8]
mov eax, dword [esi + 4]
push 0x5addf0
push dword [eax + 0x18]
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [edi - 0x15]
push eax
mov eax, dword [esi + 4]
push dword [eax + 0x1c]
call dword [sym.imp.MSVCR120.dll_sprintf]
mov ecx, dword [ebx + 0x958]
add esp, 0x28
add ecx, 0x934
push esi
mov esi, dword [ebp - 0x18]
push esi
call fcn.0048a890
add dword [ebp - 0x10], 0x3200
inc esi
add dword [ebp - 0x14], 0x3c
add edi, 0x3e
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 0x228c]
jl 0x583ab5
movzx ecx, word [ebx + 0xa09]
lea edi, [ebx + 0x984]
mov eax, 0x66666667
mov dword [ebp - 0x14], edi
imul ecx
mov ebx, edi
mov edi, 5
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + esi*4]
shl eax, 2
sub ecx, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ecx]
mov ecx, dword [ebx]
push 0
mov eax, dword [ecx]
call dword [eax + 8]
lea ebx, [ebx + 4]
dec edi
jne 0x583e10
cmp dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x14]
je 0x583e28
inc esi
test esi, esi
jle 0x583e3f
lea esp, [esp]
mov ecx, dword [edi]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
lea edi, [edi + 4]
dec esi
jne 0x583e30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret