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

Disassembly:
push 0xffffffffffffffff
push 0x101e50e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor edi, edi
cmp dword [ebp + 0xf4], edi
je 0x1004afae
mov esi, dword [ebp + 0x50]
cmp esi, edi
mov dword [esp + 0x24], esi
je 0x1004acec
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov dword [esp + 0x44], edi
cmp esi, edi
jne 0x1004ad01
mov dword [esp + 0x44], 0xffffffff
jmp 0x1004afae
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x44], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x1004ad47
mov byte [esp + 0x44], al
lea ebx, [esp + 0x28]
call fcn.100507d0
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x1004afae
mov eax, 0x64
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea eax, [esp + 0x28]
mov byte [esp + 0x4c], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x20], ebx
call fcn.10050530
test eax, eax
jbe 0x1004ae86
mov esi, dword [esp + 0x2c]
lea esp, [esp]
test esi, esi
je 0x1004ad91
mov eax, dword [esp + 0x30]
sub eax, esi
sar eax, 8
cmp ebx, eax
jb 0x1004ad9b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x2c]
mov eax, dword [edi + esi + 0x94]
cmp eax, 4
jne 0x1004ae05
mov ebx, dword [edi + esi + 0x78]
mov eax, dword [edi + esi + 0x7c]
mov ecx, ebx
or ecx, eax
mov byte [esp + 0x4c], 1
je 0x1004ae5e
mov edx, ebx
and edx, eax
cmp edx, 0xffffffff
je 0x1004ae5e
mov eax, dword [edi + esi + 0x84]
mov ecx, dword [edi + esi + 0x80]
push 0
push 0x64
push eax
push ecx
call fcn.101d25c0
mov ecx, dword [edi + esi + 0x7c]
push ecx
push ebx
push edx
push eax
call fcn.101d26b0
xor ecx, ecx
cmp ecx, edx
jb 0x1004ae5e
ja 0x1004adff
cmp dword [esp + 0x18], eax
jbe 0x1004ae5e
mov dword [esp + 0x18], eax
jmp 0x1004ae5e
cmp eax, 3
jne 0x1004ae5e
mov ebx, dword [edi + esi + 0x78]
mov eax, dword [edi + esi + 0x7c]
mov edx, ebx
or edx, eax
mov byte [esp + 0x17], 1
je 0x1004ae5e
mov ecx, ebx
and ecx, eax
cmp ecx, 0xffffffff
je 0x1004ae5e
mov edx, dword [edi + esi + 0x84]
mov eax, dword [edi + esi + 0x80]
push 0
push 0x64
push edx
push eax
call fcn.101d25c0
mov ecx, dword [edi + esi + 0x7c]
push ecx
push ebx
push edx
push eax
call fcn.101d26b0
xor ecx, ecx
cmp ecx, edx
jb 0x1004ae5e
ja 0x1004ae5a
cmp dword [esp + 0x1c], eax
jbe 0x1004ae5e
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x20]
add ebx, 1
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ebx
add edi, 0x100
call fcn.10050530
cmp ebx, eax
jb 0x1004ad80
mov esi, dword [esp + 0x24]
xor edi, edi
mov eax, dword [ebp + 0xf4]
mov edx, dword [ebp + 4]
mov ecx, dword [eax]
push edi
push 0x64
push edi
push 0x64
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp byte [esp + 0x4c], 0
je 0x1004aee0
cmp byte [ebp + 0x12c], 0
mov byte [ebp + 0x12e], 0
je 0x1004aebe
cmp byte [ebp + 0x12d], 0
je 0x1004aed9
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xf4]
mov ecx, dword [eax]
push edi
push 0x64
push edi
push edx
mov edx, dword [ebp + 4]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
push 4
jmp 0x1004af7d
cmp byte [esp + 0x17], 0
je 0x1004af1f
cmp byte [ebp + 0x12c], 0
mov byte [ebp + 0x12e], 0
je 0x1004af00
cmp byte [ebp + 0x12d], 0
je 0x1004af1b
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0xf4]
mov ecx, dword [eax]
push edi
push 0x64
push edi
push edx
mov edx, dword [ebp + 4]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
push 8
jmp 0x1004af7d
cmp byte [ebp + 0x12e], 0
je 0x1004af54
cmp byte [ebp + 0x12f], 0
mov ecx, dword [ebp + 0xf4]
sete al
mov byte [ebp + 0x12f], al
mov edx, dword [ecx]
neg al
sbb eax, eax
and eax, 8
push eax
mov eax, dword [ebp + 4]
push eax
push ecx
mov ecx, dword [edx + 0x28]
call ecx
jmp 0x1004af8f
cmp byte [ebp + 0x12c], 0
je 0x1004af7c
cmp byte [ebp + 0x12d], 0
jne 0x1004af7c
mov eax, dword [ebp + 0xf4]
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push 2
push ecx
push eax
call edx
jmp 0x1004af8f
push edi
mov eax, dword [ebp + 0xf4]
mov edx, dword [ebp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov byte [esp + 0x44], 0
lea ebx, [esp + 0x28]
call fcn.100507d0
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4