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

Disassembly:
sub esp, 0x850
push ebx
push ebp
mov ebp, dword [esp + 0x85c]
push esi
test ebp, ebp
push edi
jne 0x105881a6
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x850
ret 0xc
mov ecx, dword [0x1057aaa8]
mov eax, dword [ebp + 0x54]
push ecx
push eax
call fcn.10586a10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x105881d0
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x850
ret 0xc
mov eax, dword [esp + 0x86c]
test eax, eax
jne 0x105881ec
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x850
ret 0xc
mov ax, word [ebx + 0x44]
test ax, ax
je 0x105885ab
cmp ax, 0xffff
je 0x105885ab
mov esi, dword [esp + 0x868]
cmp si, word [ebx + 0x1a4]
ja 0x1058859a
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x90]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3b0]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], eax
xor ecx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], eax
movsx ecx, word [ebx + 0x5a]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x20]
mov dx, word [ebx + ecx*2 + 0x46]
push edx
push 0x105774d8
push eax
call edi
xor ecx, ecx
lea edx, [esp + 0x20]
mov cx, word [ebx + 0x44]
push ecx
push 0x105774d8
push edx
call edi
and esi, 0xffff
lea eax, [esp + 0x44]
push esi
push 0x105774d8
push eax
call edi
add esp, 0x24
lea ecx, [esp + 0x50]
push 0x40
push ecx
push ebp
call fcn.10585390
test ax, ax
jne 0x105885af
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push 3
push 0x105774d0
call fcn.1058f350
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x1058831a
push ebx
push 0x4a
call fcn.10585a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x3b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, dword [sym.imp.MSVCRT.dll_free]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3b4]
push ecx
push edx
push 0x1057758c
push 3
push 0x105773cc
call fcn.1058f350
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x10588388
push ebx
push 0x4a
call fcn.10585a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x224]
push ecx
call fcn.1058f430
mov edx, eax
add esp, 8
test edx, edx
jne 0x105883e5
push ebx
push 0x4a
call fcn.10585a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x94]
lea edx, [esp + 0x224]
push ecx
push ebx
push edx
call fcn.1058c700
add esp, 0x10
test ax, ax
je 0x10588449
push ebx
push eax
call fcn.10585940
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea eax, [esp + 0x90]
push eax
call fcn.1058f120
mov esi, eax
add esp, 4
test esi, esi
jne 0x10588477
push ebx
push 0x42
call fcn.10585a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x90]
lea edx, [esp + 0x6d0]
push ecx
lea eax, [esp + 0x544]
push edx
push eax
push esi
push 3
push 0x105773cc
call fcn.1058ef80
push esi
mov edi, eax
call ebp
add esp, 0x1c
test di, di
je 0x105884c1
push ebx
push 0x42
call fcn.10585a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, 0x105774c8
lea esi, [esp + 0x540]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x105884f5
test al, al
je 0x105884f1
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x105884f5
add esi, 2
add edi, 2
test al, al
jne 0x105884cd
xor eax, eax
jmp 0x105884fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10588523
lea eax, [esp + 0x6d0]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
push ebx
push eax
call fcn.10585a10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x90]
push ecx
push edx
push 1
push 0x105774d0
call fcn.1058ef80
add esp, 0x10
test ax, ax
je 0x1058855c
push ebx
push 0x42
call fcn.10585a10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x870]
lea esi, [ebx + 0x68]
push esi
mov word [ecx], ax
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [esi]
push ebx
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.10585a10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x850
ret 0xc
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc