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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
push 0x429
mov esi, eax
mov word [edi], 0x429
call fcn.100a3290
add esp, 4
cmp dword [edi + 4], 0xffff
mov eax, esi
jb 0x100978a7
push 0xffff
call fcn.100a3290
mov eax, dword [edi + 4]
add esp, 4
push eax
mov eax, esi
call fcn.100a3380
jmp 0x100978b1
movzx ecx, word [edi + 4]
push ecx
call fcn.100a3290
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x100978c4
xor eax, eax
jmp 0x100978da
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, esi
call fcn.100a3380
add esp, 4
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.10046030
test eax, eax
jbe 0x10097b3f
mov al, 4
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov al, 3
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
mov dword [esp + 0x1c], ebx
jmp 0x10097923
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x10097946
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x1009794c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 4]
add edi, dword [esp + 0x1c]
mov eax, esi
mov edx, dword [edi]
push edx
call fcn.100a3380
add esp, 4
lea ebx, [esp + 0x12]
call fcn.10007330
mov eax, dword [edi + 0x18]
push eax
mov eax, esi
call fcn.100a3380
mov ecx, dword [edi + 0x18]
add esp, 4
cmp dword [edi + 0x1c], 0x10
jb 0x10097985
mov eax, dword [edi + 8]
jmp 0x10097988
lea eax, [edi + 8]
push ecx
push eax
mov eax, esi
call fcn.100a39d0
add esp, 8
lea ebx, [esp + 0x13]
call fcn.10007330
mov ecx, dword [edi + 0x34]
push ecx
mov eax, esi
call fcn.100a3380
mov ecx, dword [edi + 0x34]
add esp, 4
cmp dword [edi + 0x38], 0x10
jb 0x100979b9
mov eax, dword [edi + 0x24]
jmp 0x100979bc
lea eax, [edi + 0x24]
push ecx
push eax
mov eax, esi
call fcn.100a39d0
add esp, 8
lea ebx, [esp + 0x14]
call fcn.10007330
mov edx, dword [edi + 0x50]
push edx
mov eax, esi
call fcn.100a3380
mov ecx, dword [edi + 0x50]
add esp, 4
cmp dword [edi + 0x54], 0x10
jb 0x100979ed
mov eax, dword [edi + 0x40]
jmp 0x100979f0
lea eax, [edi + 0x40]
push ecx
push eax
mov eax, esi
call fcn.100a39d0
add esp, 8
lea ebx, [esp + 0x15]
call fcn.10007330
mov eax, dword [edi + 0x6c]
push eax
mov eax, esi
call fcn.100a3380
mov ecx, dword [edi + 0x6c]
add esp, 4
cmp dword [edi + 0x70], 0x10
jb 0x10097a21
mov eax, dword [edi + 0x5c]
jmp 0x10097a24
lea eax, [edi + 0x5c]
push ecx
push eax
mov eax, esi
call fcn.100a39d0
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
add esp, 8
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jne 0x10097a49
xor edx, edx
jmp 0x10097a4e
mov edx, dword [esi + 8]
sub edx, eax
test eax, eax
je 0x10097a69
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x10097a69
mov eax, dword [esi + 8]
mov byte [eax], 3
add eax, 1
mov dword [esi + 8], eax
jmp 0x10097a89
mov ebx, dword [esi + 8]
cmp eax, ebx
jbe 0x10097a76
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
push esi
lea eax, [esp + 0x1e]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov eax, esi
call fcn.100074a0
mov edx, dword [esp + 0x24]
push edx
mov eax, esi
call fcn.100a3380
mov eax, dword [esp + 0x24]
add esp, 4
push eax
mov eax, esi
call fcn.100a3380
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x84]
mov ebx, dword [edi + 0x80]
add esp, 4
test eax, eax
mov dword [esp + 0x2c], ecx
jne 0x10097ac2
xor edx, edx
jmp 0x10097ac7
mov edx, dword [esi + 8]
sub edx, eax
test eax, eax
je 0x10097ae2
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x10097ae2
mov eax, dword [esi + 8]
mov byte [eax], 3
add eax, 1
mov dword [esi + 8], eax
jmp 0x10097b02
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x10097aef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
lea edx, [esp + 0x1f]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, esi
call fcn.100074a0
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, esi
call fcn.100a3380
add esp, 4
push ebx
mov eax, esi
call fcn.100a3380
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add dword [esp + 0x20], 0x88
add edi, 1
add esp, 4
mov dword [esp + 0x18], edi
call fcn.10046030
cmp edi, eax
jb 0x10097920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4