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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6d28d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x954], 0
je 0x58288f
mov ecx, dword [0x6e6d34]
push 1
push 0
call fcn.00588570
mov ecx, dword [ebx + 0x960]
test ecx, ecx
je 0x58246c
lea eax, [ebx + 0xa09]
push eax
call fcn.004626c0
mov ecx, dword [ebx + 0x958]
test ecx, ecx
je 0x58288f
add ecx, 0x934
call fcn.00489ad0
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 + 0xa05], 0
je 0x58288f
mov esi, dword [ebx + 0x2284]
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 0x2288]
jge 0x58282a
mov eax, esi
lea edi, [ebx + 0xa7b]
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 0x58252d
push 8
mov ecx, eax
call fcn.004576e0
mov esi, eax
jmp 0x58252f
xor esi, esi
cmp dword [edi - 0x32], 1
mov dword [ebp - 4], 0xffffffff
jne 0x58254b
mov ecx, dword [0x6e6edc]
lea eax, [edi - 0x26]
push eax
call fcn.00533970
mov ecx, dword [edi - 0x32]
cmp ecx, 3
jg 0x58257d
push 8
lea eax, [esi + 0x14]
push eax
lea eax, [ecx + 0x1c]
mov ecx, 0x6f6168
push eax
call fcn.0045c430
mov eax, dword [esi + 4]
push 0x5aec60
push dword [eax]
mov eax, dword [sym.imp.MSVCR120.dll_sprintf]
call eax
add esp, 8
jmp 0x5825ae
cmp ecx, 8
jg 0x582599
push 8
lea eax, [esi + 0x14]
mov ecx, 0x6f6168
push eax
push 0x20
call fcn.0045c430
push dword [edi - 0x32]
jmp 0x58259a
push ecx
mov eax, dword [esi + 4]
push 0x5ab8a8
push dword [eax]
mov eax, dword [sym.imp.MSVCR120.dll_sprintf]
call eax
add esp, 0xc
cmp dword [edi - 4], 0
jle 0x5825ca
push 8
lea eax, [esi + 0x34]
mov ecx, 0x6f6168
push eax
push 0x66
call fcn.0045c430
cmp dword [edi - 4], 0
jne 0x5825de
push 8
lea eax, [esi + 0x34]
mov ecx, 0x6f6168
push eax
push 0x21
call fcn.0045c430
cmp dword [edi - 4], 0
jge 0x5825f6
push 8
lea eax, [esi + 0x34]
mov ecx, 0x6f6168
push eax
push 0x67
call fcn.0045c430
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 0x582624
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f6168
push eax
push 0x22
call fcn.0045c430
cmp dword [edi], 0x41
jne 0x58263b
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f6168
push eax
push 0x22
call fcn.0045c430
cmp dword [edi], 0x80
jne 0x582655
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f6168
push eax
push 0x23
call fcn.0045c430
cmp dword [edi], 0x81
jne 0x58266f
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f6168
push eax
push 0x23
call fcn.0045c430
cmp dword [edi], 0
jne 0x582686
push 8
lea eax, [esi + 0x54]
mov ecx, 0x6f6168
push eax
push 0x21
call fcn.0045c430
mov eax, dword [esi + 4]
push 0x5aec60
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 8
cmp dword [edi - 0x2e], 0
je 0x582719
mov eax, dword [0x6e6bec]
test al, 1
jne 0x5826d6
or eax, 1
mov dword [0x6e6bec], eax
mov ecx, 0x6e6bc0
mov dword [ebp - 4], 1
call fcn.005249f0
push 0x5a49e0
call fcn.00597703
add esp, 4
mov dword [ebp - 4], 0xffffffff
push dword [edi - 0x2e]
mov ecx, 0x6e6bc0
call fcn.00524c10
test eax, eax
je 0x582719
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x582719
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 0x5aec60
push dword [eax + 0xc]
call dword [sym.imp.MSVCR120.dll_sprintf]
mov eax, dword [edi - 0x32]
add esp, 8
cmp eax, 0xa
jg 0x58278d
cmp eax, 3
jg 0x582762
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 0x582787
cmp eax, 8
jg 0x58278d
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 0x5ab8a8
push dword [eax + 0x14]
call dword [sym.imp.MSVCR120.dll_sprintf]
push dword [edi + 8]
mov eax, dword [esi + 4]
push 0x5ab8a8
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.00489ce0
add dword [ebp - 0x10], 0x3200
inc esi
add dword [ebp - 0x14], 0x3c
add edi, 0x3e
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 0x2288]
jl 0x582505
movzx ecx, word [ebx + 0xa05]
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 0x582860
cmp dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x14]
je 0x582878
inc esi
test esi, esi
jle 0x58288f
lea esp, [esp]
mov ecx, dword [edi]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
lea edi, [edi + 4]
dec esi
jne 0x582880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret