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

Disassembly:
push 0xffffffffffffffff
push 0x44f0b6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463060]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0xb8]
xor esi, esi
mov dword [esp + 0x18], esi
cmp eax, 0xffffffff
jne 0x40d06d
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x18]
push ecx
push ebp
call edx
cmp eax, esi
je 0x40d071
jmp 0x40d62a
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x28], edi
cmp edi, esi
je 0x40d088
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.0040e0c0
mov byte [esp + 0xa4], 1
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], esi
ja 0x40d144
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0xc]
push edx
push eax
push edi
call ecx
mov ebx, eax
cmp ebx, esi
je 0x40d38d
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], esi
cmp eax, ecx
je 0x40d109
mov esi, dword [eax]
push eax
call fcn.0042bd6c
mov ecx, dword [esp + 0x70]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x40d0f2
xor esi, esi
push ecx
call fcn.0042bd6c
mov edx, dword [esp + 0x5c]
add esp, 4
push edx
mov dword [esp + 0x70], esi
call fcn.0042bd6c
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
add esp, 4
push edi
call ecx
jmp 0x40d628
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xb8], 0xffffffff
jne 0x40d156
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x40d166
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x14], edx
mov esi, edx
mov ecx, dword [ebp + 0x98]
sub ecx, dword [ebp + 0x94]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40d18c
call fcn.0042c1b0
mov ecx, dword [ebp + 0x94]
mov eax, esi
imul eax, eax, 0x68
mov edx, dword [eax + ecx + 8]
or edx, dword [eax + ecx + 0xc]
jne 0x40d1f3
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0xac], 2
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
push esi
push edi
call eax
mov edi, eax
test edi, edi
je 0x40d1d2
cmp edi, 1
jne 0x40d33a
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d319
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40d319
cmp ebx, esi
ja 0x40d320
mov edi, ebx
imul edi, edi, 0x68
jmp 0x40d206
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x98]
xor eax, eax
mov dword [esp + 0x3c], eax
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
cmp ebx, esi
sete al
sub ecx, dword [ebp + 0x94]
mov dword [esp + 0x3c], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40d24f
call fcn.0042c1b0
mov edx, dword [ebp + 0x94]
movzx eax, word [edi + edx + 0x32]
mov ecx, dword [ebp + 0x98]
and eax, 0x10
sub ecx, edx
mov dword [esp + 0x40], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40d283
call fcn.0042c1b0
mov eax, dword [ebp + 0x94]
mov edx, dword [edi + eax + 8]
mov eax, dword [edi + eax + 0xc]
mov ecx, dword [ebp + 0x98]
sub ecx, dword [ebp + 0x94]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40d2bf
call fcn.0042c1b0
mov edx, dword [ebp + 0x94]
mov eax, dword [edx + edi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
lea ecx, [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
push ecx
push eax
lea esi, [esp + 0x44]
call fcn.0040e370
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0040e3c0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov dword [edx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [esp + 0x4c]
add dword [esp + 0x34], eax
adc dword [esp + 0x38], ecx
inc ebx
add edi, 0x68
cmp ebx, dword [esp + 0x14]
jbe 0x40d202
mov edi, dword [esp + 0xbc]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x18]
jb 0x40d140
xor esi, esi
jmp 0x40d0bb
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d352
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea esi, [esp + 0x58]
call fcn.0040e320
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042bd6c
mov eax, dword [esp + 0xc0]
add esp, 4
mov dword [esp + 0xa4], 0xffffffff
test eax, eax
je 0x40d386
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
jmp 0x40d62a
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
push ecx
mov ecx, dword [ebp + 0x78]
push ecx
push eax
call edx
mov ebx, eax
cmp ebx, esi
jne 0x40d5ff
push 0x20
call fcn.0042be1e
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x40d41f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
mov dword [esi + 4], ebx
mov dword [esi], vtable.NKZ::CInStreamWithSize.0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x40d405
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40d402
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x14], esi
jmp 0x40d425
mov dword [esp + 0x14], ebx
mov esi, ebx
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x40d435
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
push 0x40
mov byte [esp + 0xa8], 3
call fcn.0042be1e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40d46a
mov eax, dword [esp + 0xb0]
push eax
lea eax, [esp + 0x5c]
mov ebx, edi
call fcn.0040e7c0
mov esi, eax
mov dword [esp + 0x1c], esi
xor ebx, ebx
jmp 0x40d470
mov dword [esp + 0x1c], ebx
mov esi, ebx
mov dword [esp + 0x2c], esi
cmp esi, ebx
je 0x40d480
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov dword [esp + 0x3c], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xa4], 5
cmp dword [ebp + 0x44], 1
jne 0x40d4d4
mov al, byte [ebp + 0x48]
test al, al
je 0x40d4d4
movzx edi, al
lea esi, [esp + 0x3c]
call fcn.0040f020
movzx eax, byte [ebp + 0x48]
mov edx, dword [esp + 0x44]
push eax
lea ecx, [ebp + 0x49]
push ecx
push edx
call fcn.0042ef60
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xc8]
add esp, 0xc
xor ebx, ebx
movzx edx, byte [ebp + 0x42]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x44]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x40]
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
movzx ebx, byte [ebp + 0x41]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], ebx
push ebp
mov ecx, edi
lea ebx, [esp + 0x34]
mov dword [esp + 0x94], 0
call fcn.0040cba0
mov ebx, eax
cmp ebx, 0xe00e0004
jne 0x40d5c6
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
push eax
push edi
call edx
mov ebx, eax
mov eax, dword [esp + 0x44]
push eax
call fcn.0042cb0a
add esp, 4
mov byte [esp + 0xa4], 3
test ebx, ebx
jne 0x40d5db
test esi, esi
je 0x40d581
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d599
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x58]
call fcn.0040e320
mov eax, dword [esp + 0x58]
push eax
call fcn.0042bd6c
mov dword [esp + 0xa8], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
add esp, 4
push edi
call edx
xor eax, eax
jmp 0x40d62a
mov eax, dword [esp + 0x44]
push eax
call fcn.0042cb0a
add esp, 4
mov byte [esp + 0xa4], 3
test esi, esi
je 0x40d5e7
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d5ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x58]
call fcn.0040e320
mov eax, dword [esp + 0x58]
push eax
call fcn.0042bd6c
mov dword [esp + 0xa8], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
add esp, 4
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14