Function at 0x40dec0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a041
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x584], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x59c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5b0]
mov esi, dword [esp + 0x5ac]
xor edi, edi
push 0x104
lea eax, [esp + 0x394]
push edi
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
call fcn.0041ec20
push 0x104
lea ecx, [esp + 0x4a4]
push edi
push ecx
call fcn.0041ec20
add esp, 0x18
push esi
lea ecx, [esp + 0x18]
call fcn.00402ae0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x5ac], edi
call fcn.00408270
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x390]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40df68
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x5a4], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x390]
add eax, ebp
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dfc3
mov ecx, dword [0x43b898]
mov edx, dword [0x43b89c]
mov dword [eax], ecx
mov ecx, dword [0x43b8a0]
mov dword [eax + 4], edx
mov dl, byte [0x43b8a4]
mov dword [eax + 8], ecx
push esi
lea ecx, [esp + 0x18]
mov byte [eax + 0xc], dl
call fcn.00402ae0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x5ac], 1
call fcn.00408270
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x494]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40e020
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e049
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x5a4], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e06f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x494]
add eax, ebp
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e078
mov ecx, dword [str.ldcab.lddat]
mov edx, dword [0x43b88c]
mov dword [eax], ecx
mov ecx, dword [0x43b890]
mov dword [eax + 4], edx
mov dl, byte [0x43b894]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x390]
push 0x43b560
push eax
call fcn.0041e83b
lea ecx, [esp + 0x49c]
mov edi, eax
push 0x43b560
push ecx
mov dword [esp + 0x24], edi
call fcn.0041e83b
add esp, 0x10
mov dword [esp + 0x18], eax
test edi, edi
je 0x40e39f
test eax, eax
je 0x40e39f
push 0x10e
lea edx, [esp + 0x144]
push 0
push edx
call fcn.0041ec20
push edi
push 1
lea eax, [esp + 0x154]
push 0x10e
push eax
call fcn.0041e75a
lea ecx, [esp + 0x15c]
push str.LDIND
push ecx
call fcn.0041efe4
add esp, 0x24
test eax, eax
jne 0x40e39f
push edi
call fcn.0041e452
add esp, 4
test eax, eax
jne 0x40e3a3
jmp 0x40e144
mov ebx, dword [esp + 0x1c]
call fcn.00410194
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40e342
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
push 0x118
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x5b0], 2
call fcn.0041ec20
push edi
push 1
lea edx, [esp + 0x3c]
push 0x118
push edx
call fcn.0041e75a
add esp, 0x1c
cmp eax, 1
jne 0x40e34c
push 0x140
lea eax, [esp + 0x254]
push 0
push eax
call fcn.0041ec20
lea edx, [esp + 0x25c]
add esp, 0xc
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e1c4
lea edi, [esp + 0x250]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e1d6
mov cx, word [0x43b574]
lea edx, [esp + 0x14c]
push 0x43b830
push edx
mov word [edi], cx
call fcn.0041efe4
mov bx, word [0x43b574]
add esp, 8
test eax, eax
je 0x40e24d
lea eax, [esp + 0x14c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e211
lea edi, [esp + 0x250]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e222
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x250]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e242
mov word [edi], bx
lea eax, [esp + 0x28]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e253
lea edi, [esp + 0x250]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e264
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test dword [esp + 0x134], 0x80000000
rep movsb byte es:[edi], byte [esi]
je 0x40e2b3
lea edi, [esp + 0x250]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e291
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x254]
push ecx
mov word [edi], bx
call fcn.0040dd70
add esp, 8
jmp 0x40e304
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x254]
push edx
call fcn.0040dd70
mov eax, dword [esp + 0x140]
mov esi, dword [esp + 0x20]
push 0
push 0
push eax
push esi
call fcn.0041ed36
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x154]
push ecx
lea edx, [esp + 0x148]
push edx
push eax
lea ecx, [esp + 0x274]
push ecx
push esi
call fcn.0040beb0
add esp, 0x2c
lea eax, [ebp - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [esp + 0x5a4], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041e452
mov edi, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x40e140
jmp 0x40e3a3
push 0x80004005
call fcn.00401330
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.CUnCompressFile::UnCompressLdxFile_fread_Fail__d_
push edx
call fcn.00401ce0
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x5a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e3a3
mov dword [esp + 0x20], ebp
test edi, edi
je 0x40e3b0
push edi
call fcn.0041e1f2
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e3c1
push eax
call fcn.0041e1f2
add esp, 4
push 0
push str.UnCompressLdxFile_Over
mov ecx, 0x44b3c5
call fcn.0040aa20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x59c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x584]
xor ecx, esp
call fcn.0041d4f4
add esp, 0x594
ret