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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xa24
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x1057de93
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0xa24
ret 0x18
mov ecx, dword [0x1056faa8]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.1057ba10
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1057debd
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0xa24
ret 0x18
mov eax, dword [esp + 0xa40]
test eax, eax
jne 0x1057ded9
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0xa24
ret 0x18
mov eax, dword [esp + 0xa4c]
test ax, ax
ja 0x1057def6
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0xa24
ret 0x18
cmp ax, 0x38
jbe 0x1057df0d
pop edi
pop esi
pop ebp
mov ax, 0x14
pop ebx
add esp, 0xa24
ret 0x18
mov ax, word [ebp + 0x44]
test ax, ax
je 0x1057e3be
cmp ax, 0xffff
je 0x1057e3be
mov esi, dword [esp + 0xa3c]
cmp si, word [ebp + 0x1a4]
ja 0x1057e3ad
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x3f4]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x584]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x264]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
lea edi, [esp + 0xc8]
mov dword [esp + 0x2c], ecx
mov ecx, 0x1c
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], eax
mov ecx, 0x1c
mov dword [esp + 0x40], eax
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x4c], edx
mov ecx, 0x1c
lea edi, [esp + 0x1b0]
mov dword [esp + 0x50], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], edx
mov ecx, 0x1c
lea edi, [esp + 0x54]
mov dword [esp + 0x1c], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], eax
movsx ecx, word [ebp + 0x5a]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x30]
mov dx, word [ebp + ecx*2 + 0x46]
push edx
push 0x1056c4d8
push eax
call ebx
xor ecx, ecx
lea edx, [esp + 0x30]
mov cx, word [ebp + 0x44]
push ecx
push 0x1056c4d8
push edx
call ebx
and esi, 0xffff
lea eax, [esp + 0x30]
push esi
push 0x1056c4d8
push eax
call ebx
mov eax, dword [esp + 0xa70]
mov esi, dword [esp + 0xa64]
and eax, 0xffff
lea edi, [esp + 0xec]
mov ecx, eax
mov dword [esp + 0x38], eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
push eax
push edx
call fcn.10583b60
mov eax, dword [esp + 0x44]
push eax
push 0x1056c4d8
lea ecx, [esp + 0x74]
push ecx
call ebx
mov eax, dword [esp + 0xa74]
add esp, 0x3c
lea edx, [esp + 0x224]
push 0x40
push edx
push eax
call fcn.1057a390
test ax, ax
jne 0x1057e3c2
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
push 5
push 0x1056c4d0
call fcn.10584350
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x1057e0d6
push ebp
push 0x4a
call fcn.1057aa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x584]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, 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 ebx
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x588]
push ecx
push edx
push 0x1056c5b4
push 3
push 0x1056c3cc
call fcn.10584350
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x1057e144
push ebp
push 0x4a
call fcn.1057aa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x264]
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 ebx
lea ecx, [esp + 0x268]
push ecx
call fcn.10584430
mov edx, eax
add esp, 8
test edx, edx
jne 0x1057e1a1
push ebp
push 0x4a
call fcn.1057aa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x264]
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 ebx
lea ecx, [esp + 0x3f8]
lea edx, [esp + 0x268]
push ecx
push ebp
push edx
call fcn.10581700
add esp, 0x10
test ax, ax
je 0x1057e205
push ebp
push eax
call fcn.1057a940
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
lea eax, [esp + 0x3f4]
push eax
call fcn.10584120
mov esi, eax
add esp, 4
test esi, esi
jne 0x1057e233
push ebp
push 0x42
call fcn.1057aa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
lea ecx, [esp + 0x3f4]
lea edx, [esp + 0x8a4]
push ecx
lea eax, [esp + 0x718]
push edx
push eax
push esi
push 3
push 0x1056c3cc
call fcn.10583f80
push esi
mov edi, eax
call ebx
add esp, 0x1c
test di, di
je 0x1057e27d
push ebp
push 0x42
call fcn.1057aa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
mov esi, 0x1056c4c8
lea eax, [esp + 0x714]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1057e2b1
test cl, cl
je 0x1057e2ad
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1057e2b1
add eax, 2
add esi, 2
test cl, cl
jne 0x1057e289
xor eax, eax
jmp 0x1057e2b6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1057e2df
lea eax, [esp + 0x8a4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
push ebp
push eax
call fcn.1057aa10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
mov ecx, 0x1c
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1b0]
lea eax, [esp + 0x3f4]
push ecx
push edx
push eax
push 2
push 0x1056c4d0
call fcn.10583f80
add esp, 0x14
test ax, ax
je 0x1057e32d
push ebp
push 0x42
call fcn.1057aa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.10583bf0
mov edi, dword [esp + 0xa4c]
add esp, 8
test edi, edi
je 0x1057e366
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x13c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xa48]
test esi, esi
je 0x1057e384
lea ecx, [esp + 0x1b0]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esi], eax
lea esi, [ebp + 0x68]
push esi
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.1057aa10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0xa24
ret 0x18
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 0x18