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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x850
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x176b4203
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x850
ret 0xc
mov ecx, dword [0x176a4aa8]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.176b0a10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x176b422d
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x850
ret 0xc
mov ax, word [ebx + 0x44]
test ax, ax
je 0x176b4758
cmp ax, 0xffff
je 0x176b4758
mov ebp, dword [esp + 0x868]
cmp bp, word [ebx + 0x1a4]
ja 0x176b4740
mov eax, dword [esp + 0x86c]
test eax, eax
jne 0x176b4280
test bp, bp
je 0x176b42c7
push ebx
push 0x10
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
jne 0x176b42a4
test bp, bp
je 0x176b42a4
push ebx
push 0x10
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
cmp word [eax], 0
jne 0x176b42c7
test bp, bp
je 0x176b42c7
push ebx
push 0x10
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
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 + 0x38], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
movsx ecx, word [ebx + 0x5a]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x38]
mov dx, word [ebx + ecx*2 + 0x46]
push edx
push 0x176a14d8
push eax
call esi
xor ecx, ecx
lea edx, [esp + 0x38]
mov cx, word [ebx + 0x44]
push ecx
push 0x176a14d8
push edx
call esi
and ebp, 0xffff
lea eax, [esp + 0x38]
push ebp
push 0x176a14d8
push eax
call esi
mov eax, dword [esp + 0x890]
add esp, 0x24
test eax, eax
jne 0x176b4394
lea ecx, [esp + 0x14]
push 0x176a1578
push ecx
call esi
add esp, 8
jmp 0x176b43a9
xor edx, edx
mov dx, word [eax]
lea eax, [esp + 0x14]
push edx
push 0x176a14d8
push eax
call esi
add esp, 0xc
mov edx, dword [esp + 0x864]
lea ecx, [esp + 0x50]
push 0x40
push ecx
push edx
call fcn.176af390
test ax, ax
jne 0x176b478c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
push 4
push 0x176a14d0
call fcn.176b9350
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x176b4407
push ebx
push 0x4a
call fcn.176afa10
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 0x176a1568
push 3
push 0x176a13cc
call fcn.176b9350
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x176b4475
push ebx
push 0x4a
call fcn.176afa10
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.176b9430
mov edx, eax
add esp, 8
test edx, edx
jne 0x176b44d2
push ebx
push 0x4a
call fcn.176afa10
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.176b6700
add esp, 0x10
test ax, ax
je 0x176b4536
push ebx
push eax
call fcn.176af940
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea eax, [esp + 0x90]
push eax
call fcn.176b9120
mov esi, eax
add esp, 4
test esi, esi
jne 0x176b4564
push ebx
push 0x42
call fcn.176afa10
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 0x176a13cc
call fcn.176b8f80
push esi
mov edi, eax
call ebp
add esp, 0x1c
test di, di
je 0x176b45ae
push ebx
push 0x42
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
push 0
call ebp
add esp, 4
mov edi, 0x176a14c8
lea esi, [esp + 0x540]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x176b45e9
test al, al
je 0x176b45e5
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x176b45e9
add esi, 2
add edi, 2
test al, al
jne 0x176b45c1
xor eax, eax
jmp 0x176b45ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x176b465b
lea eax, [esp + 0x6d0]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
cmp si, 0x47
je 0x176b4616
cmp word [esp + 0x868], 0
jne 0x176b4644
mov edi, 1
push edi
push ebx
call fcn.176afc40
push ebx
push 0x176a4aa8
call fcn.176b4820
push ebx
call ebp
mov eax, dword [0x176a15a0]
add esp, 0x14
xor ebx, ebx
cmp eax, edi
je 0x176b4644
mov dword [0x176a15a0], edi
push ebx
push esi
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x90]
push ecx
mov edi, 1
push edx
push edi
push 0x176a14d0
call fcn.176b8f80
add esp, 0x10
test ax, ax
je 0x176b4698
push ebx
push 0x42
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov esi, dword [esp + 0x86c]
test esi, esi
je 0x176b46cc
cmp word [esp + 0x868], 0
je 0x176b46d7
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov word [esi], ax
mov ecx, dword [ebx + 0x5c]
and eax, 0xffff
add esp, 4
sub ecx, eax
mov dword [ebx + 0x5c], ecx
cmp word [esp + 0x868], 0
jne 0x176b4717
push edi
push ebx
call fcn.176afc40
push ebx
push 0x176a4aa8
call fcn.176b4820
push ebx
call ebp
mov eax, dword [0x176a15a0]
add esp, 0x14
cmp eax, edi
je 0x176b46fe
mov dword [0x176a15a0], edi
push 0
push 0
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea esi, [ebx + 0x68]
push esi
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [esi]
push ebx
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.176afa10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
push ebx
push 5
call fcn.176afa10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, 1
push edi
push ebx
call fcn.176afc40
push ebx
push 0x176a4aa8
call fcn.176b4820
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x176a15a0]
add esp, 0x14
cmp eax, edi
je 0x176b4788
mov dword [0x176a15a0], edi
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc