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

Disassembly:
push 0xffffffffffffffff
push 0x1011d1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov ecx, esi
call fcn.1001d040
test al, al
jne 0x100806f5
test byte [ebp + 0x34f], 8
jne 0x100806f5
test byte [esi + 0x50c], 0x20
jne 0x100806f5
test byte [esi + 0x51d], 1
jne 0x100806f5
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
test al, al
jne 0x100806f5
mov eax, dword [esi + 0xa0]
cmp dword [eax + 0x94], 0
jle 0x100806f5
test byte [esi + 0x4f0], 2
je 0x100806f5
lea eax, [ebp + 0x280]
lea ebx, [ebp + 0x270]
call fcn.10022610
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.10065390
mov edi, eax
mov eax, dword [esp + 0x18]
sub edi, eax
mov eax, ebx
call fcn.10022610
sub edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x24], edi
jle 0x100806f5
mov eax, dword [esi + 0x304]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0xa8], ebx
call fcn.10083020
mov eax, dword [ebp + 0x31c]
cmp eax, ebx
je 0x100802be
test byte [eax + 0x24], 4
je 0x100802be
mov dword [esp + 0x2c], 1
jmp 0x100802f6
movzx eax, byte [ebp + 0x34a]
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x100802f6
mov edx, dword [esi + 0x2e0]
mov eax, dword [ebp + 0x7c]
mov edx, dword [edx + 0x8c]
mov ecx, dword [esi + 0xa0]
imul edx, eax
mov ecx, dword [ecx + 0x94]
xor eax, eax
cmp edx, ecx
setg al
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x2e0]
and dword [esp + 0x34], 0x80000000
and byte [esp + 0x38], 0xfe
lea edx, [ebp + 0x254]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0xa8], 1
test byte [ebp + 0x34d], 0x10
je 0x100803c3
mov ebx, ebp
call fcn.1006d1f0
mov ebx, dword [ebp + 0x258]
mov edi, eax
add ebx, ebx
push 0
sar ebx, 1
lea eax, [esp + 0x34]
call fcn.1001cdd0
lea esi, [esp + 0x18]
call fcn.100601e0
lea esi, [esp + 0x50]
call fcn.1005eac0
lea edi, [esp + 0x18]
call fcn.10007c10
test al, al
je 0x100803b4
lea ecx, [ecx]
lea esi, [esp + 0x18]
call fcn.100629e0
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
call fcn.1001cd70
test al, al
je 0x1008039a
call fcn.100629e0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
call fcn.1001cda0
lea esi, [esp + 0x18]
call fcn.10073c50
lea esi, [esp + 0x50]
lea edi, [esp + 0x18]
call fcn.10007c10
test al, al
jne 0x10080370
mov esi, dword [esp + 0xb0]
lea eax, [esp + 0x30]
mov dword [esp + 0x20], eax
push ebp
call fcn.100732f0
cmp eax, 3
jne 0x100803d4
mov dword [esp + 0x18], eax
jmp 0x100803e3
xor ecx, ecx
cmp eax, 2
sete cl
add ecx, 1
mov dword [esp + 0x18], ecx
mov edi, dword [esi + 0xb4]
mov ebx, dword [ebp + 0x31c]
lea eax, [ebp + 0x2b0]
push eax
push ecx
push ebp
call fcn.10068970
mov edx, dword [esp + 0x20]
add esp, 4
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x50]
push ebx
lea ecx, [esp + 0x58]
push ecx
push edx
push eax
mov ecx, edi
call fcn.1007c5c0
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0x216], 0
je 0x10080451
mov edi, dword [esp + 0x3c]
lea ecx, [edi + 0x34]
call fcn.1007e9d0
add eax, dword [edi + 0x64]
mov edx, dword [esi + 0xa0]
cmp eax, dword [edx + 0x90]
jl 0x10080472
lea eax, [ebp + 0x270]
call fcn.10022610
mov esi, eax
lea eax, [ebp + 0x280]
call fcn.10022610
add esi, eax
mov byte [esp + 0x17], 0
je 0x10080477
mov byte [esp + 0x17], 1
mov eax, dword [0x1014e214]
lea esi, [esp + 0x18]
lea edi, [esp + 0x40]
mov dword [esp + 0x20], eax
call fcn.100601e0
lea ecx, [ecx]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x44], eax
mov esi, eax
jbe 0x100804a2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x100804b2
lea ecx, [esp + 0x40]
cmp edi, ecx
je 0x100804b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x1c], esi
je 0x1008063b
cmp dword [esp + 0x2c], 0
jne 0x100804d1
test ebx, ebx
jle 0x1008063f
lea esi, [esp + 0x18]
call fcn.100629e0
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
push edx
call fcn.1007e110
test eax, eax
jle 0x1008050d
test ebx, ebx
jle 0x1008063f
cmp byte [esp + 0x17], 0
jne 0x1008063b
call fcn.100629e0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x10080618
lea esi, [esp + 0x18]
call fcn.100629e0
lea ebx, [ebp + 0x280]
lea esi, [esp + 0x80]
mov edi, ebx
mov dword [esp + 0x28], eax
call fcn.1005eac0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x88]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.100601e0
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x54]
push ecx
call fcn.100758b0
mov dword [esp + 0x6c], esi
add esp, 4
lea esi, [esp + 0x98]
mov edi, ebx
mov dword [esp + 0x6c], eax
call fcn.1005eac0
mov esi, eax
lea edi, [esp + 0x68]
call fcn.10007c10
test al, al
jne 0x10080610
lea esi, [esp + 0x18]
call fcn.100629e0
lea ebx, [ebp + 0x270]
lea esi, [esp + 0x70]
mov edi, ebx
mov dword [esp + 0x28], eax
call fcn.1005eac0
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x90]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call fcn.100601e0
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x5c]
push ecx
call fcn.100758b0
mov dword [esp + 0x64], esi
add esp, 4
lea esi, [esp + 0x78]
mov edi, ebx
mov dword [esp + 0x64], eax
call fcn.1005eac0
mov esi, eax
lea edi, [esp + 0x60]
call fcn.10007c10
test al, al
jne 0x10080610
push 0
lea esi, [esp + 0x1c]
call fcn.100629e0
push eax
push ebp
call fcn.1006d450
test al, al
je 0x10080610
sub dword [esp + 0x24], 1
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x10080622
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x1c]
cmp edx, dword [edi + 8]
jb 0x10080631
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x1c], 4
jmp 0x10080490
test ebx, ebx
jg 0x1008065b
and byte [ebp + 0x34f], 0xef
test byte [esp + 0x38], 1
je 0x100806ec
mov eax, dword [esp + 0x30]
push eax
jmp 0x100806e3
test byte [ebp + 0x34d], 0x10
jne 0x1008066b
or byte [ebp + 0x34f], 0x10
mov eax, dword [0x1014e214]
mov ecx, dword [esp + 0x20]
mov edx, eax
xor edx, ecx
test edx, 0x7ffff
jne 0x10080689
xor eax, ecx
test eax, 0xfff80000
je 0x100806d7
mov eax, dword [ebp + 0x284]
test eax, eax
jne 0x10080697
xor ecx, ecx
jmp 0x100806a2
mov ecx, dword [ebp + 0x288]
sub ecx, eax
sar ecx, 3
mov edx, dword [ebp + 0x274]
test edx, edx
jne 0x100806b0
xor eax, eax
jmp 0x100806bb
mov eax, dword [ebp + 0x278]
sub eax, edx
sar eax, 3
add eax, ecx
jne 0x100806d7
push 2
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.1006d450
lea esi, [esp + 0x30]
call fcn.10001a30
jmp 0x100806ec
test byte [esp + 0x38], 1
je 0x100806ec
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea esi, [esp + 0x40]
call fcn.10073830
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret