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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b668
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x5cc280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov byte [eax], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ebx*4]
shl eax, 3
add eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
push ebx
mov ecx, esi
call fcn.00412220
cmp dword [ebp - 0x54], 0x20
mov eax, dword [esi + 0x34]
movzx eax, byte [eax + ebx]
mov dword [ebp - 0x40], eax
jbe 0x40e200
mov ebx, 0x80004001
jmp 0x40ee1f
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040df20
lea ecx, [ebp - 0xb8]
call fcn.004153a0
test al, al
jne 0x40e2b4
mov ebx, 0x80004001
jmp 0x40eddd
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x28]
mov byte [ebp - 0x11], 1
mov ecx, dword [ecx + ebx*4]
movzx eax, byte [ebx + eax]
add ecx, eax
mov esi, dword [edx + ecx*8]
mov edx, dword [edx + ecx*8 + 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40e304
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, edx
jb 0x40e2f1
ja 0x40e2e7
cmp eax, esi
jbe 0x40e2f3
mov ebx, 0x80004005
jmp 0x40eddd
cmp eax, esi
jne 0x40e2ff
cmp ecx, edx
jne 0x40e2ff
mov byte [ebp - 0x11], 1
jmp 0x40e304
xor al, al
mov byte [ebp - 0x11], al
mov ebx, dword [ebp - 0x18]
cmp byte [ebx], 0
je 0x40e3d2
mov esi, dword [ebp - 0xb4]
cmp esi, dword [ebx + 8]
jne 0x40e3d2
xor edx, edx
test esi, esi
je 0x40e343
mov edi, dword [ebx + 4]
mov ecx, dword [ebp - 0xb8]
sub edi, ecx
mov eax, dword [ecx]
cmp eax, dword [edi + ecx]
jne 0x40e3d2
inc edx
add ecx, 4
cmp edx, esi
jb 0x40e330
mov esi, dword [ebp - 0xa8]
cmp esi, dword [ebx + 0x14]
jne 0x40e3d2
xor ecx, ecx
test esi, esi
je 0x40e378
mov edi, dword [ebx + 0x10]
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + ecx*8]
cmp eax, dword [edi + ecx*8]
jne 0x40e3d2
mov eax, dword [edx + ecx*8 + 4]
cmp eax, dword [edi + ecx*8 + 4]
jne 0x40e3d2
inc ecx
cmp ecx, esi
jb 0x40e361
mov edi, dword [ebp - 0x74]
xor ecx, ecx
test edi, edi
je 0x40e39e
mov edx, dword [ebx + 0x44]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + ecx*8]
cmp eax, dword [edx + ecx*8]
jne 0x40e3d2
mov eax, dword [esi + ecx*8 + 4]
cmp eax, dword [edx + ecx*8 + 4]
jne 0x40e3d2
inc ecx
cmp ecx, edi
jb 0x40e387
mov edx, dword [ebp - 0x9c]
cmp edx, dword [ebx + 0x20]
jne 0x40e3d2
xor ecx, ecx
test edx, edx
je 0x40e681
mov esi, dword [ebx + 0x1c]
mov edi, dword [ebp - 0xa0]
nop dword [eax]
mov eax, dword [edi + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x40e3d2
inc ecx
cmp ecx, edx
jb 0x40e3c0
jmp 0x40e681
mov byte [ebx], 0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x40e3e9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x58], 0
push 0x84
call fcn.0051d8c5
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40e4f4
mov dword [esi + 4], vtable.NCoderMixer2::CMixer.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi], vtable.NCoderMixer2::CMixerMT.0
mov dword [esi + 4], vtable.NCoderMixer2::CMixerMT.1.0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [ebx + 0x50], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x40e4f9
xor esi, esi
mov dword [ebx + 0x50], esi
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x40e506
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x58], esi
lea edx, [ebp - 0xb8]
mov ecx, dword [ebx + 0x50]
push edx
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x54], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
jne 0x40eddd
xor edi, edi
cmp dword [ebp - 0x54], edi
jbe 0x40e5ff
xor ecx, ecx
mov dword [ebp - 0x24], ecx
nop
mov esi, dword [ebp - 0x58]
add esi, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00416810
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov edx, dword [ebp - 0x30]
test ebx, ebx
jne 0x40e584
mov eax, dword [esi + 0x10]
cmp eax, 1
jne 0x40e5ac
test ecx, ecx
jne 0x40e5b5
mov ebx, 0x80004001
mov byte [ebp - 4], 7
test edx, edx
je 0x40e595
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x40eddd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40eddd
test edx, edx
je 0x40e57f
cmp dword [ebp - 0x28], eax
jne 0x40e57f
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x40e5d5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x40e5e6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x24]
inc edi
add ecx, 0x18
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ecx
cmp edi, dword [ebp - 0x54]
jb 0x40e540
jmp 0x40e602
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0xb8]
lea esi, [ebx + 4]
push eax
mov ecx, esi
call fcn.0040dcc0
add esi, 0x40
lea eax, [ebp - 0x78]
cmp eax, esi
je 0x40e67e
mov edi, dword [ebp - 0x74]
cmp edi, dword [esi + 8]
jbe 0x40e65f
push dword [esi]
call fcn.0051d90c
mov ecx, 8
mov dword [esi + 8], 0
mov eax, edi
mov dword [esi + 4], 0
mul ecx
mov ecx, 0xffffffff
mov dword [esi], 0
cmovb eax, ecx
push eax
call fcn.0051d903
add esp, 8
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 4], edi
test edi, edi
je 0x40e67b
lea eax, [edi*8]
push eax
push dword [ebp - 0x78]
push dword [esi]
call fcn.0051f1a0
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov byte [ebx], 1
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
jne 0x40eddd
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp + 0x1b], bl
mov dword [ebp - 0x3c], ebx
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x54], ebx
jbe 0x40e99c
xor ecx, ecx
shl eax, 3
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x24], eax
nop
mov edi, dword [ebp - 0x58]
add edi, ecx
mov ecx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ecx + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [eax]
test esi, esi
jne 0x40e6da
mov esi, dword [eax + 4]
cmp byte [ebp + 0x1b], 0
jne 0x40e77d
cmp byte [ebp + 0x30], 0
je 0x40e732
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x52f08c
push esi
mov byte [ebp - 4], 0xb
call dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e724
push dword [ebp + 0x34]
mov ecx, dword [eax]
push eax
mov byte [ebp + 0x1b], 1
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x40e9fc
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x40e732
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x52f0bc
push esi
mov byte [ebp - 4], 0xe
call dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e76f
push dword [ebp + 0x3c]
mov ecx, dword [eax]
push dword [ebp + 0x38]
mov byte [ebp + 0x1b], 1
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x40ea02
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0x10
test eax, eax
je 0x40e77d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x52f05c
push esi
mov byte [ebp - 4], 0x11
call dword [eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [edi + 0xc]
test eax, eax
je 0x40e7c5
mov ecx, dword [eax]
push edx
push dword [edi + 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, 0x80070057
je 0x40ea08
test ebx, ebx
jne 0x40ea0d
mov eax, dword [ebp - 0x10]
jmp 0x40e7cd
test edx, edx
jne 0x40ea2c
mov byte [ebp - 4], 0x15
test eax, eax
je 0x40e7db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x52f09c
push esi
mov byte [ebp - 4], 0x16
call dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e81e
mov ecx, dword [eax]
mov bl, byte [ebp - 0x11]
mov byte [ebp - 0x5c], bl
mov edx, dword [ecx + 0xc]
movzx ecx, bl
push ecx
push eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x40ea12
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x40e82c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [edi + 0x10]
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x6c], edi
test ebx, ebx
je 0x40e85e
mov ecx, 8
mov eax, ebx
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0051d903
mov edi, eax
add esp, 4
mov dword [ebp - 0x6c], edi
xor esi, esi
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x64], esi
test ebx, ebx
je 0x40e88a
mov ecx, 4
mov eax, ebx
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0051d903
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x10], 0
test ebx, ebx
je 0x40e93f
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
xor eax, eax
test ecx, ecx
je 0x40e8ba
mov edx, dword [ebp - 0x50]
nop dword [eax]
cmp dword [edx + eax*8], ebx
je 0x40e8e9
inc eax
cmp eax, ecx
jb 0x40e8b0
mov eax, dword [ebp - 0x44]
xor edx, edx
test eax, eax
je 0x40e8d0
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + edx*4], ebx
je 0x40e8ff
inc edx
cmp edx, eax
jb 0x40e8c6
push esi
call fcn.0051d90c
push edi
call fcn.0051d90c
add esp, 8
mov ebx, 0x80004001
jmp 0x40eddd
test eax, eax
js 0x40e8ba
mov edx, dword [edx + eax*8 + 4]
mov ecx, dword [ebp + 0x14]
add edx, dword [ebp - 0x68]
shl edx, 3
add edx, dword [ecx + 0x28]
jmp 0x40e926
test edx, edx
js 0x40e8d0
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [eax + edx*8 + 8]
sub ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 0xc]
sbb eax, dword [ebx + edx*8 + 4]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x38]
lea edx, [edi + edx*8]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x10]
mov eax, esi
inc ebx
mov dword [ebp - 0x38], ebx
mov dword [eax + ecx*4], edx
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x40e8a0
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp - 0x3c]
test eax, eax
je 0x40e955
cmp ebx, dword [ebp - 0x94]
jne 0x40e955
mov edx, eax
jmp 0x40e95e
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x28]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x5c]
push esi
mov ecx, dword [eax + 0x54]
push edx
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
push esi
call fcn.0051d90c
push edi
mov byte [ebp - 4], 1
call fcn.0051d90c
mov ecx, dword [ebp - 0x60]
inc ebx
add dword [ebp - 0x24], 8
add ecx, 0x18
add esp, 8
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x60], ecx
cmp ebx, dword [ebp - 0x54]
jb 0x40e6c0
cmp dword [ebp + 0x20], 0
je 0x40e9b8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov al, byte [ebp - 0x11]
xor al, 1
movzx eax, al
push eax
call edx
xor eax, eax
xor esi, esi
mov dword [ebp + 0x30], eax
mov dword [ebp - 0x30], eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x28], eax
push 0x30
mov byte [ebp - 4], 0x1b
call fcn.0051d8c5
mov edi, eax
mov dword [ebp + 0x1c], eax
add esp, 4
test edi, edi
je 0x40ea48
mov dword [edi + 4], esi
lea eax, [edi + 0x18]
mov dword [edi], vtable.NArchive::N7z::CLockedInStream.0
push eax
mov dword [edi + 8], esi
call fcn.004076c0
jmp 0x40ea4d
mov byte [ebp - 4], 0xc
jmp 0x40ea16
mov byte [ebp - 4], 0xf
jmp 0x40ea16
mov ebx, 0x80004001
mov eax, dword [ebp - 0x10]
jmp 0x40ea31
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40eddd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40eddd
mov ebx, 0x80004001
mov byte [ebp - 4], 0x14
test eax, eax
je 0x40eddd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40eddd
xor edi, edi
mov dword [ebp + 0x1c], edi
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x68], edi
test edi, edi
je 0x40ea5e
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0x1d
cmp eax, 1
jbe 0x40eab4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
lea eax, [edi + 0x10]
push eax
mov eax, dword [ebp - 0x20]
push 0
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, dword [ebp + 0x10]
push eax
push ecx
push ebx
call edx
mov ebx, eax
test ebx, ebx
jne 0x40edc7
mov ebx, dword [ebp + 8]
push ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40eaab
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 8], ebx
mov eax, dword [ebp - 0x44]
xor ebx, ebx
mov dword [ebp + 0x3c], ebx
test eax, eax
je 0x40ecd4
mov edx, dword [ebp - 0x20]
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp + 0x34], 0
add ecx, dword [edx + ebx*8]
mov ebx, dword [edx + ebx*8 + 4]
adc ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x1c], ecx
cmp eax, 1
jne 0x40eb11
mov esi, dword [ebp + 8]
push 0
push 0
push ebx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x40eccc
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [ebp + 0x34], esi
jmp 0x40eb6b
push 0x20
call fcn.0051d8c5
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
test esi, esi
je 0x40eb40
mov dword [esi + 4], 0
mov dword [esi], vtable.NArchive::N7z::CLockedSequentialInStreamMT.0
mov dword [esi + 0x18], 0
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x40eb42
xor esi, esi
mov dword [ebp + 0x34], esi
test edi, edi
je 0x40eb4f
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40eb5c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push 0x28
call fcn.0051d8c5
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40eb94
mov dword [edi + 4], 0
mov dword [edi], vtable.CLimitedSequentialInStream.0
mov dword [edi + 8], 0
jmp 0x40eb96
xor edi, edi
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp ebx, edx
jne 0x40ec13
cmp edx, 0x7fffffff
jae 0x40ee87
mov eax, edx
mov ecx, 0x7fffffff
shr eax, 2
sub ecx, edx
inc eax
cmp eax, ecx
cmovbe ecx, eax
lea eax, [edx + ecx]
mov ecx, 4
mov dword [ebp + 0x18], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0051d903
add esp, 4
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x40ebf9
lea eax, [ebx*4]
push eax
push dword [ebp + 0x30]
push ecx
call fcn.0051f1a0
add esp, 0xc
push dword [ebp + 0x30]
call fcn.0051d90c
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp + 0x30], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
push 4
call fcn.0051d8c5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40ec2e
mov dword [ebx], 0
jmp 0x40ec30
xor ebx, ebx
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 1]
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ecx + eax*4], ebx
test edi, edi
je 0x40ec4c
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx]
test ecx, ecx
je 0x40ec58
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], edi
test esi, esi
je 0x40ec64
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40ec71
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp + 0x3c]
mov edx, dword [ebp - 0x20]
mov dword [edi + 8], esi
mov ecx, dword [edx + ebx*8 + 8]
sub ecx, dword [edx + ebx*8]
mov eax, dword [edx + ebx*8 + 0xc]
sbb eax, dword [edx + ebx*8 + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
mov byte [ebp - 4], 0x24
test esi, esi
je 0x40ecb2
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
inc ebx
mov byte [ebp - 4], 0x1d
mov dword [ebp + 0x3c], ebx
cmp ebx, eax
jae 0x40ecd1
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
jmp 0x40ead0
jmp 0x40edc7
mov esi, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp + 0x14], edi
test esi, esi
je 0x40ecfc
mov ecx, 4
mov eax, esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0051d903
mov edi, eax
add esp, 4
mov dword [ebp + 0x14], edi
test esi, esi
je 0x40ed1b
sub dword [ebp + 0x30], edi
mov ecx, edi
mov edi, dword [ebp + 0x30]
mov eax, dword [ecx + edi]
lea ecx, [ecx + 4]
mov eax, dword [eax]
mov dword [ecx - 4], eax
sub esi, 1
jne 0x40ed08
mov edi, dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
je 0x40edb6
xor esi, esi
mov dword [ebp + 0x30], esi
mov ebx, dword [ebp + 0x24]
mov byte [ebp - 4], 0x26
test ebx, ebx
je 0x40ed85
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x54]
push dword [ecx + 0x60]
call fcn.00416250
test al, al
jne 0x40ed85
push 0xc
call fcn.0051d8c5
mov esi, eax
add esp, 4
mov dword [ebp + 0x18], esi
test esi, esi
je 0x40ed80
mov dword [esi + 4], 0
mov dword [esi], vtable.NArchive::N7z::CDecProgress.0
mov dword [esi + 8], ebx
mov eax, dword [ebx]
push ebx
mov byte [ebp - 4], 0x27
call dword [eax + 4]
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 0x26
call dword [eax + 4]
jmp 0x40ed82
xor esi, esi
mov dword [ebp + 0x30], esi
mov eax, dword [ebp + 0x20]
lea edx, [ebp + 8]
push dword [ebp + 0x2c]
mov dword [ebp + 8], eax
test esi, esi
mov eax, dword [ebp - 0x18]
cmovne ebx, esi
push ebx
push edx
mov ecx, dword [eax + 0x54]
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
mov byte [ebp - 4], 0x28
test esi, esi
je 0x40edbb
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x40edbb
mov ebx, 0x80004005
push edi
call fcn.0051d90c
mov edi, dword [ebp + 0x1c]
add esp, 4
mov byte [ebp - 4], 0x2b
test edi, edi
je 0x40edd5
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x30]
call fcn.0040da10
push dword [ebp - 0x78]
call fcn.0051d90c
push dword [ebp - 0x84]
call fcn.0051d90c
push dword [ebp - 0x90]
call fcn.0051d90c
push dword [ebp - 0xa0]
call fcn.0051d90c
push dword [ebp - 0xac]
call fcn.0051d90c
push dword [ebp - 0xb8]
call fcn.0051d90c
add esp, 0x18
push dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0051d90c
push dword [ebp - 0x50]
call fcn.0051d90c
mov edi, dword [ebp - 0x58]
add esp, 8
test edi, edi
je 0x40ee71
push 0x40db30
push dword [edi - 4]
lea esi, [edi - 4]
mov dword [ebp - 4], 0x2c
push 0x18
push edi
call fcn.0051d7b0
mov ecx, dword [edi - 4]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*8 + 4]
push ecx
push esi
call fcn.0051d911
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
push 0x53b570
lea eax, [ebp + 0x30]
mov dword [ebp + 0x30], 0x7e5
push eax
call fcn.0051fbdc
int3