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

Disassembly:
sub esp, 0xe0
mov eax, dword [0x101a8cb0]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xfc]
push ebp
mov ebp, dword [esp + 0xf4]
push esi
mov esi, dword [esp + 0xfc]
push edi
mov edi, dword [esp + 0x104]
mov edx, 0x7fe0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
cmp word [eax], dx
jne 0x1007afd1
mov edx, 0x10
mov word [eax + 2], dx
mov dword [esp + 0x28], 1
mov edx, dword [eax + 4]
push ebx
push esi
push ecx
and edx, 0x7fffffff
push eax
mov dword [esp + 0x24], edx
call fcn.10079d00
add esp, 0x10
test eax, eax
jl 0x1007b3f1
cmp dword [esp + 0x14], 0
jle 0x1007b3f8
xor eax, eax
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.10079e30
add esp, 0x14
test eax, eax
jl 0x1007b355
mov ecx, dword [esp + 0x2c]
sub dword [esp + 0x14], ecx
sub dword [esp + 0x18], ecx
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x1c]
jne 0x1007b063
test edx, edx
jne 0x1007b063
mov eax, 0xfffe
cmp word [esp + 0x3c], ax
jne 0x1007b35f
movzx eax, word [esp + 0x3e]
sub eax, 0xe000
je 0x1007b1da
sub eax, 0xd
je 0x1007b1a6
sub eax, 0xd0
je 0x1007b369
cmp dword [esp + 0x28], 0
jne 0x1007b35f
cmp dword [esp + 0x20], 0
jne 0x1007b0a1
test edx, edx
je 0x1007b35f
lea eax, [esp + 0x10]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007b0a8
sub eax, edi
jne 0x1007b13f
cmp dword [ebx], 1
je 0x1007b13f
test byte [esp + 0x3c], 1
je 0x1007b0db
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.10078760
add esp, 8
jmp 0x1007b13f
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10073db0
movzx edi, ax
add esp, 8
test di, di
je 0x1007b13f
lea edx, [esp + 0x10]
push 0x10146b04
push edx
call fcn.10003cb0
movzx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x7c]
push 0x10146a20
push edx
call fcn.10003cf0
push 0x14d5
push str.._rddfile.c
lea eax, [esp + 0x8c]
push eax
push edi
push 0x40003
call fcn.10002bc0
add esp, 0x2c
push 1
push 0
push ebp
call fcn.1000c5c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x40], 0xffffffff
push ebx
push ecx
push esi
push ebp
lea edx, [esp + 0x20]
mov edi, eax
lea eax, [esp + 0x4c]
push edx
push eax
je 0x1007b16e
call fcn.1007b490
jmp 0x1007b173
call fcn.1007af50
movzx eax, ax
add esp, 0x18
test ax, ax
jne 0x1007b46f
push 1
push 0
push ebp
call fcn.1000c5c0
sub eax, edi
sub dword [esp + 0x20], eax
mov edi, dword [esp + 0x30]
add esp, 0xc
sub dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp 0x1007aff2
push ebx
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.10079d00
add esp, 0x10
test eax, eax
jl 0x1007b3f1
cmp dword [esp + 0x20], 0
je 0x1007b35f
mov dword [esp + 0x20], 0
jmp 0x1007aff2
cmp dword [esp + 0x28], 0
je 0x1007b210
push ebx
push edi
push esi
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.10078ca0
movzx eax, ax
add esp, 0x18
test ax, ax
jne 0x1007b46f
mov edx, dword [esp + 0x40]
sub dword [esp + 0x14], edx
jmp 0x1007aff2
test edx, edx
je 0x1007b27e
mov eax, dword [esp + 0x18]
add ecx, eax
je 0x1007b23a
push 0x1475
push str.._rddfile.c
push str.SQ_Item_len_error.
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
push 1
push 0
push esi
call fcn.1000c5c0
mov edx, dword [esp + 0x44]
mov edi, eax
push 0
mov ecx, edi
sub ecx, dword [esp + 0x40]
push edx
push esi
mov dword [esp + 0x70], ecx
call fcn.1000c5c0
push ebx
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.10079d00
push 0
push edi
push esi
call fcn.1000c5c0
mov edi, dword [esp + 0x58]
add esp, 0x34
push 1
push 0
push esi
mov dword [esp + 0x28], 0
call fcn.1000c5c0
push ebx
push esi
lea edx, [esp + 0x24]
mov dword [esp + 0x4c], eax
push edx
lea eax, [esp + 0x54]
push eax
call fcn.10079d00
add esp, 0x1c
test eax, eax
jl 0x1007b3f1
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
jne 0x1007b2c6
mov dword [esp + 0x20], 1
jmp 0x1007aff2
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x1007b2fb
push ebx
push edi
push esi
push ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.10078ca0
movzx eax, ax
add esp, 0x18
test ax, ax
jne 0x1007b46f
mov ecx, dword [esp + 0x40]
sub dword [esp + 0x14], ecx
jmp 0x1007aff2
push 1
push 0
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], eax
call fcn.1000c5c0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x34], edx
jmp 0x1007aff2
mov eax, 0xca
jmp 0x1007b46f
mov eax, 2
jmp 0x1007b46f
test edx, edx
je 0x1007b3d9
cmp dword [esp + 0x18], 0
je 0x1007b39b
cmp dword [0x10155218], 0
je 0x1007b39b
push 0x14af
push str.._rddfile.c
push str.SQ_Item_len_error.
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
push 1
push 0
push esi
call fcn.1000c5c0
mov ecx, dword [esp + 0x44]
push 0
mov edi, eax
sub eax, dword [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x70], eax
call fcn.1000c5c0
push ebx
push esi
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.10079d00
push 0
push edi
push esi
call fcn.1000c5c0
add esp, 0x34
push ebx
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.10079d00
add esp, 0x10
test eax, eax
jge 0x1007b46d
mov eax, 0xcb
jmp 0x1007b46f
cmp dword [esp + 0x1c], 0
je 0x1007b462
cmp dword [esp + 0x18], 0
je 0x1007b424
push 0x14e8
push str.._rddfile.c
push str.SQ_Item_len_error.
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
push 1
push 0
push esi
call fcn.1000c5c0
mov ecx, dword [esp + 0x44]
push 0
mov edi, eax
sub eax, dword [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x70], eax
call fcn.1000c5c0
push ebx
push esi
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.10079d00
push 0
push edi
push esi
call fcn.1000c5c0
add esp, 0x34
cmp dword [esp + 0x14], 0
jne 0x1007b35f
xor eax, eax
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002aab0
add esp, 0xe0
ret