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

Disassembly:
push 0xffffffffffffffff
push 0x45338b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4652b0]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
mov esi, dword [esp + 0xcc]
xor ebx, ebx
push ebx
push 0xb
push esi
call fcn.0040ed60
mov eax, dword [esi + 0x18]
push eax
call fcn.0040e3d0
mov edi, eax
mov dword [esp + 0x54], edi
cmp edx, ebx
ja 0x40f091
cmp edi, 0x7fffffff
jbe 0x40f096
call fcn.0040e250
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0xd0]
push eax
push esi
lea eax, [esp + 0x24]
mov dword [esp + 0xcc], ebx
call fcn.0040e330
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
mov edx, dword [edx + 4]
push eax
push ebx
mov ecx, ebp
call edx
mov esi, ebp
call fcn.00418170
mov edi, dword [esp + 0x54]
cmp edi, ebx
jbe 0x40f1ba
mov esi, edi
jmp 0x40f0e0
mov eax, 4
mov ecx, 8
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], vtable.CObjectVector_struct_NArchive::N7z::CCoderInfo_.0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x74], vtable.CRecordVector_struct_NArchive::N7z::CBindPair_.0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x88], vtable.CRecordVector_unsigned_int_.0
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ecx
mov dword [esp + 0x9c], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
mov byte [esp + 0xb4], bl
lea eax, [esp + 0x60]
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 1
call fcn.00411e90
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xc8], bl
call fcn.0040dba0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4 - 4]
mov edx, dword [esp + 0xcc]
push edx
call fcn.0040e8c0
sub esi, 1
jne 0x40f0e0
mov dword [esp + 0xc4], 0xffffffff
cmp byte [esp + 0x20], bl
je 0x40f1f9
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [eax + 4]
add esi, 4
dec ecx
push 1
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0xc], ebx
je 0x40f1f9
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [eax + 0x18], ecx
mov esi, dword [esp + 0xcc]
push ebx
push 0xc
push esi
call fcn.0040ed60
mov dword [esp + 0x18], ebx
cmp edi, ebx
jbe 0x40f2c4
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + ecx*4]
push esi
call fcn.0040dcb0
mov edi, eax
add esi, 0x3c
call fcn.00418170
cmp edi, ebx
jbe 0x40f2a6
mov dword [esp + 0x1c], edi
jmp 0x40f240
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + 0x18]
push eax
call fcn.0040e3d0
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x28], edx
cmp dword [esi + 8], eax
jne 0x40f283
cmp eax, 0x40
mov ecx, 1
jl 0x40f271
mov ecx, eax
shr ecx, 2
jmp 0x40f27b
cmp eax, 8
jl 0x40f27b
mov ecx, 8
lea edi, [eax + ecx]
call fcn.00418170
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*8 + 4], edx
mov eax, 1
add dword [esi + 8], eax
sub dword [esp + 0x1c], eax
jne 0x40f240
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x54]
jb 0x40f215
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0xcc]
mov eax, dword [esi + 0x18]
push eax
call fcn.0040e3d0
mov ecx, eax
or ecx, edx
je 0x40f439
cmp eax, 0xa
jne 0x40f3ed
cmp edx, ebx
jne 0x40f3ed
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], vtable.CRecordVector_bool_.0
mov dword [esp + 0xc4], 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 4
mov dword [esp + 0x2c], vtable.CRecordVector_unsigned_int_.0
lea edx, [esp + 0x40]
push edx
push edi
push esi
lea eax, [esp + 0x38]
mov byte [esp + 0xd0], 3
call fcn.0040edd0
xor eax, eax
cmp edi, ebx
jbe 0x40f376
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + eax*4]
mov edx, dword [esp + 0x4c]
mov cl, byte [edx + eax]
mov byte [esi + 0x54], cl
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + eax*4]
inc eax
mov dword [esi + 0x50], ecx
cmp eax, edi
jb 0x40f350
mov esi, dword [esp + 0xcc]
mov byte [esp + 0xc4], 2
mov edx, dword [esp + 0x34]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], vtable.CBaseRecordVector.0
call dword [0x458dd4]
mov eax, dword [esp + 0x38]
push eax
call fcn.0043f105
mov dword [esp + 0xc8], 0xffffffff
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], vtable.CBaseRecordVector.0
call dword [0x458dd4]
mov edx, dword [esp + 0x4c]
push edx
call fcn.0043f105
add esp, 4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
jmp 0x40f426
mov esi, dword [esi + 0x18]
push esi
call fcn.0040e3d0
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x28], edx
cmp edx, ebx
ja 0x40f091
jb 0x40f416
cmp edi, ecx
ja 0x40f091
add eax, edi
mov edi, dword [esp + 0x54]
mov dword [esi + 8], eax
mov esi, dword [esp + 0xcc]
mov eax, dword [esi + 0x18]
push eax
call fcn.0040e3d0
mov ecx, eax
or ecx, edx
jne 0x40f2d7
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0xc