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

Disassembly:
push 0xffffffffffffffff
push 0x1005d821
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x10071430]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10071430]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xd4]
xor ebx, ebx
xor eax, eax
cmp edi, ebx
je 0x10003297
mov edx, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0xd4]
push ecx
push edx
mov edx, dword [esp + 0xe4]
lea esi, [esp + 0x94]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov byte [esp + 0xac], al
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov word [esp + 0xae], ax
call fcn.1000b210
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push 1
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call edx
cmp eax, ebx
jne 0x10003297
movzx eax, word [esp + 0xa2]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x10]
push ebx
push 1
push ebx
push eax
push ebp
call edx
cmp eax, ebx
jne 0x10003297
push 0x14
mov dword [esp + 0x24], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.1004846c
add esp, 4
cmp eax, ebx
je 0x10003039
mov ecx, dword [esp + 0xc0]
mov dword [eax + 4], ebx
mov edx, edi
mov dword [eax], vtable.NKZ::CInBufStream.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov edi, eax
jmp 0x1000303b
xor edi, edi
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x1000304b
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push 0x14
mov dword [esp + 0xbc], ebx
call fcn.1004846c
add esp, 4
cmp eax, ebx
je 0x10003070
lea edx, [esp + 0x20]
push edx
mov esi, eax
call fcn.10003740
mov esi, eax
jmp 0x10003072
xor esi, esi
cmp edi, esi
je 0x10003092
cmp esi, ebx
je 0x10003082
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
cmp edi, ebx
je 0x1000308e
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov dword [esp + 0x18], esi
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov edi, ebp
push ebp
mov dword [esp + 0x20], edi
call edx
push 0x10
mov byte [esp + 0xbc], 1
call fcn.1004846c
add esp, 4
cmp eax, ebx
je 0x100030c7
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.100036a0
mov esi, eax
jmp 0x100030c9
xor esi, esi
cmp ebp, esi
je 0x100030e8
cmp esi, ebx
je 0x100030d9
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov dword [esp + 0x1c], esi
mov edi, esi
xor esi, esi
mov dword [esp + 0x38], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov byte [esp + 0xb8], 2
cmp dword [esp + 0xcc], ebx
je 0x1000313e
movzx edi, byte [esp + 0x94]
lea esi, [esp + 0x38]
call fcn.100039d0
movzx eax, byte [esp + 0x94]
mov esi, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xa8]
push ecx
push esi
call fcn.1004c770
mov edi, dword [esp + 0x28]
add esp, 0xc
movzx eax, byte [esp + 0x92]
movzx edx, byte [esp + 0x91]
movzx ecx, byte [esp + 0x93]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x3c]
push ebx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], edx
push ecx
lea edx, [esp + 0x58]
mov dword [esp + 0x64], eax
push edx
lea eax, [esp + 0x70]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x6c], ebx
push eax
mov ebx, edi
mov dword [esp + 0x68], esi
call fcn.10002d50
add esp, 0x10
push esi
mov ebx, eax
call fcn.1004852e
add esp, 4
mov byte [esp + 0xb8], 0
test ebx, ebx
je 0x10003200
test edi, edi
je 0x100031de
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100031f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
jmp 0x10003297
xor esi, esi
cmp edi, esi
je 0x1000320e
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10003229
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x24]
push edx
push 1
push esi
push esi
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call eax
cmp eax, esi
jne 0x10003297
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x10]
push esi
push esi
push edx
push eax
push ebp
call ecx
cmp eax, esi
jne 0x10003297
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0xc8]
push edx
mov edx, dword [esp + 0x48]
mov edi, ebp
lea ecx, [esp + 0x8c]
call fcn.1000b390
cmp eax, esi
jne 0x10003297
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
push esi
push esi
push ecx
push edx
push ebp
call eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10047eba
add esp, 0xa8
ret