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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5166bb
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
cmp esi, ebx
je 0x4086b5
cmp word [esi], bx
je 0x4086b5
cmp edi, ebx
je 0x4086b5
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
mov dword [esp + 0x44], edi
call edx
lea eax, [esp + 0x10]
mov dword [esp + 0x80], ebx
push eax
lea ecx, [esp + 0x38]
mov eax, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], ebx
call fcn.0040ab70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408073
mov dword [esp + 0x80], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, ebx
jmp 0x4086ba
cmp dword [esp + 0x34], 0x7ea5a6b
je 0x40809a
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, 0xe00e1001
jmp 0x4086ba
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor ecx, ecx
push 0xc
mov dword [eax + 0xb8], edx
mov dword [eax + 0xbc], ecx
call fcn.004b9963
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4080d8
mov dword [eax + 4], ecx
mov ebx, eax
mov dword [eax], vtable.NKZ::CInFileStream.0
mov dword [eax + 8], 0xffffffff
mov dword [esp + 0x1c], ebx
jmp 0x4080de
mov dword [esp + 0x1c], ecx
mov ebx, ecx
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x4080ee
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
push esi
mov esi, ebx
mov byte [esp + 0x84], 1
call fcn.0040b2c0
mov esi, eax
test esi, esi
je 0x408132
mov byte [esp + 0x80], 0
test ebx, ebx
je 0x408118
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov dword [esp + 0x80], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, esi
jmp 0x4086ba
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx]
push 0
push 0
xor eax, eax
push eax
mov eax, dword [ecx + 0x10]
push edx
push ebx
call eax
mov esi, eax
test esi, esi
je 0x408176
mov byte [esp + 0x80], 0
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, esi
jmp 0x4086ba
push 0x2a
lea edx, [esp + 0x48]
push 0
push edx
call fcn.004b8df0
add esp, 0xc
mov eax, ebx
lea esi, [esp + 0x44]
call fcn.0040b650
mov esi, eax
test esi, esi
jne 0x408518
movzx eax, word [esp + 0x4e]
mov esi, dword [esp + 0x18]
mov ecx, eax
and ecx, 2
and eax, 4
cmp word [esp + 0x64], 0
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], eax
je 0x4082ee
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
mov dword [esp + 0x3c], 0
call eax
push 0x30
call fcn.004b9963
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
xor eax, eax
mov byte [esp + 0x80], 2
cmp ebx, eax
je 0x408216
lea ecx, [ebx + 8]
mov dword [ebx + 4], eax
push ecx
mov dword [ebx], vtable.NKZ::CInStreamVolume.0
call fcn.0040a0d0
xor eax, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x24], eax
mov dword [esp + 0x14], ebx
jmp 0x40821c
mov dword [esp + 0x14], eax
mov ebx, eax
mov byte [esp + 0x80], 1
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x408234
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push ebx
call eax
push edi
lea ecx, [esi + 0xc]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [esi + 0xa0]
push eax
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x34]
push eax
lea edx, [esi + 0x20]
lea ecx, [esi + 0x88]
push ebx
call fcn.0040d000
mov dword [esp + 0x20], eax
test eax, eax
je 0x40829d
mov byte [esp + 0x80], 1
test ebx, ebx
je 0x408281
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x20]
jmp 0x4086ba
mov ebx, esi
call fcn.00407e60
lea edi, [esi + 0x14]
mov esi, dword [esp + 0x14]
call fcn.0040acc0
mov eax, 1
mov edx, ebx
mov dword [edx + 0xac], eax
mov byte [esp + 0x80], al
test esi, esi
je 0x4082d0
mov eax, dword [esi]
push esi
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
jmp 0x4086ba
push 0x18
call fcn.004b9963
add esp, 4
test eax, eax
je 0x40831b
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov edi, ebx
mov esi, eax
call fcn.0040a8d0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x408327
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40833b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x80], 4
test byte [esp + 0x4e], 1
je 0x4083b5
push 0
push edi
push 2
lea eax, [esi + 0xa0]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esi + 0xc]
lea ecx, [esi + 0x10]
push eax
call fcn.0040ead0
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4083b5
mov byte [esp + 0x80], 1
test eax, eax
je 0x408389
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x80], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x10]
jmp 0x4086ba
mov edx, dword [esp + 0x6a]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [esp + 0x72]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
xor ecx, ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x4083e3
mov eax, dword [esp + 0x14]
mov byte [esp + 0x80], 1
jmp 0x408381
mov dword [esp + 0x28], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
push 1
push edi
push 1
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esi + 0xc]
lea ecx, [esi + 0x10]
push eax
mov byte [esp + 0x94], 5
call fcn.0040ead0
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
je 0x40846d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004ba1cb
mov eax, dword [esp + 0x18]
mov byte [esp + 0x84], 1
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x80], 0
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x10]
jmp 0x4086ba
push 0x14
call fcn.004b9963
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40849d
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax], vtable.NKZ::CInBufStream.0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [esp + 0x10], eax
jmp 0x4084a3
mov dword [esp + 0x10], ecx
mov eax, ecx
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x4084b9
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov byte [esp + 0x80], 6
cmp dword [esi + 0xb0], ecx
je 0x4085db
mov ecx, dword [esp + 0x10]
add esi, 0x20
call fcn.0040af60
mov esi, eax
test esi, esi
je 0x408542
mov byte [esp + 0x80], 5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4084f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call fcn.004ba1cb
mov eax, dword [esp + 0x18]
mov byte [esp + 0x84], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov byte [esp + 0x80], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, esi
jmp 0x4086ba
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add edx, 0x88
call fcn.0040f9d0
mov esi, eax
test esi, esi
jne 0x4084df
mov ebx, dword [esp + 0x18]
call fcn.00407e60
lea edi, [ebx + 0x14]
lea eax, [esp + 0x20]
call fcn.0040a030
mov byte [esp + 0x80], 5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408588
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call fcn.004ba1cb
mov eax, dword [esp + 0x18]
mov byte [esp + 0x84], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x4086ba
lea edx, [esi + 0x88]
mov ecx, eax
call fcn.0040f060
mov dword [esp + 0x1c], eax
test eax, eax
je 0x408652
mov byte [esp + 0x80], 5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408608
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call fcn.004ba1cb
mov eax, dword [esp + 0x18]
mov byte [esp + 0x84], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov byte [esp + 0x80], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x1c]
jmp 0x4086ba
lea edi, [esi + 0x14]
lea eax, [esp + 0x20]
call fcn.0040a030
mov edi, dword [esp + 0x18]
add edi, 0x18
mov esi, ebx
call fcn.0040acc0
mov byte [esp + 0x80], 5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408684
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call fcn.004ba1cb
mov eax, dword [esp + 0x18]
mov byte [esp + 0x84], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov byte [esp + 0x80], 0
mov eax, dword [ebx]
push ebx
jmp 0x4082cb
mov eax, 0x80070057
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret 4