Function at 0x405790
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b9b9
mov eax, dword fs:[0]
push eax
sub esp, 0xa8c
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0xa88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0xaa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xab0]
xor esi, esi
push 0x208
lea ecx, [esp + 0x488]
push esi
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
call fcn.00421360
lea edx, [esp + 0x490]
push edx
call fcn.00408630
lea eax, [esp + 0x494]
add esp, 0x10
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405807
mov ecx, dword [0x43e8d4]
mov edx, dword [0x43e8d8]
mov dword [eax], ecx
mov ecx, dword [0x43e8dc]
mov dword [eax + 4], edx
mov dl, byte [0x43e8e0]
mov dword [eax + 8], ecx
push 0xa
lea ecx, [esp + 0x3c]
mov byte [eax + 0xc], dl
mov dword [esp + 0x24], esi
call fcn.00412946
mov dword [esp + 0xaa8], esi
call fcn.004125a5
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405862
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0xaa8], 1
call fcn.004125a5
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405894
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x484]
push 0x43e570
push ecx
mov byte [esp + 0xab0], 2
call fcn.00420f7d
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x4060b4
push 0x10e
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00421360
push ebp
push 1
lea eax, [esp + 0x68]
push 0x10e
push eax
call fcn.00420e9c
push ebp
call fcn.00420b94
add esp, 0x20
test eax, eax
jne 0x405c72
nop
push 0x118
lea ecx, [esp + 0x168]
push 0
push ecx
call fcn.00421360
push ebp
push 1
lea edx, [esp + 0x178]
push 0x118
push edx
call fcn.00420e9c
add esp, 0x1c
cmp eax, 1
je 0x405942
push ebp
call fcn.00420bc8
add esp, 4
test eax, eax
jne 0x405be1
push 0x140
lea eax, [esp + 0x280]
push 0
push eax
call fcn.00421360
mov eax, dword [esp + 0xac0]
lea edx, [esp + 0x288]
add esp, 0xc
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405970
lea edi, [esp + 0x27c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405982
mov bx, word [0x43e584]
mov word [edi], bx
lea ecx, [esp + 0x60]
mov eax, 0x43e84c
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4059c0
test dl, dl
je 0x4059bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4059c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4059a0
xor eax, eax
jmp 0x4059c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405a0c
lea eax, [esp + 0x60]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059d0
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4059e1
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 + 0x27c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a01
mov word [edi], bx
lea eax, [esp + 0x164]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a15
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405a26
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]
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x284]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.00408900
mov eax, dword [esp + 0x278]
add esp, 0xc
cmp eax, dword [esp + 0x2c]
jne 0x405c6a
mov ecx, dword [esp + 0x268]
cmp ecx, dword [esp + 0x28]
jne 0x405c6a
push str..sec
lea ecx, [esp + 0x18]
call fcn.00402d40
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xaac], 3
call fcn.00402d40
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
mov byte [esp + 0xaa8], 4
jge 0x405ad5
push esi
lea ecx, [esp + 0x18]
call fcn.004016c0
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00420252
push eax
call fcn.004010e0
add esp, 0xc
test esi, esi
jl 0x405c60
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x405c60
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x405b2e
push esi
lea ecx, [esp + 0x1c]
call fcn.004016c0
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00420252
push eax
call fcn.004010e0
add esp, 0xc
test esi, esi
jl 0x405c60
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x405c60
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.0041fb80
add esp, 8
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0xaa8], 3
jne 0x405c15
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ba3
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 byte [esp + 0xaa8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.00420b94
add esp, 4
test eax, eax
je 0x405900
jmp 0x405c72
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push str.UpdateLdxFile_when_fread_FileSummary_struct_with_error_code:__d
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x3c]
add esp, 0xc
push 0
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
jmp 0x405c72
add eax, 0xfffffff0
mov dword [esp + 0x20], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c36
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 byte [esp + 0xaa8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405c72
push 0x80070057
call fcn.004011d0
mov dword [esp + 0x20], 1
push ebp
call fcn.00420934
add esp, 4
cmp dword [esp + 0x20], 0
je 0x4060b4
push 0x208
lea ecx, [esp + 0x690]
push 0
push ecx
call fcn.00421360
lea edx, [esp + 0x698]
push edx
call fcn.00408630
lea eax, [esp + 0x69c]
add esp, 0x10
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405cb2
mov ecx, dword [str.ldcab.lddat]
mov edx, dword [0x43e8c8]
mov dword [eax], ecx
mov ecx, dword [0x43e8cc]
mov dword [eax + 4], edx
mov dl, byte [0x43e8d0]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x68c]
push eax
call fcn.004088a0
lea ecx, [esp + 0x488]
push ecx
call fcn.004088a0
push 0x208
lea edx, [esp + 0x8a0]
push 0
push edx
call fcn.00421360
lea eax, [esp + 0x8a8]
push eax
call fcn.00408630
push 0x208
lea ecx, [esp + 0x298]
push 0
push ecx
call fcn.00421360
mov eax, dword [esp + 0xad8]
lea edx, [esp + 0x2a0]
add esp, 0x24
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405d40
lea ecx, [esp + 0x60]
mov eax, 0x43e84c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405d73
test dl, dl
je 0x405d6f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405d73
add eax, 2
add ecx, 2
test dl, dl
jne 0x405d53
xor eax, eax
jmp 0x405d78
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405dc9
lea edi, [esp + 0x27c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d84
mov dx, word [0x43e584]
lea eax, [esp + 0x60]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405da0
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405db1
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]
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405de3
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x18]
push str.GetFilesInTree:_s
mov bl, 5
push edx
mov byte [esp + 0xab4], bl
call fcn.00401f40
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x280]
push ecx
call fcn.004091f0
lea edx, [esp + 0x284]
push edx
push 2
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x8ac]
push edx
call fcn.00402360
movzx eax, al
add esp, 0x1c
test eax, eax
je 0x405f09
lea eax, [esp + 0x484]
push eax
lea ecx, [esp + 0x24]
call fcn.00402d40
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xab0], 6
call fcn.00409010
add esp, 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xaa8], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x284]
push eax
push ecx
call fcn.00404090
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x24], edi
mov byte [esp + 0xaa8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405f0d
mov edi, dword [esp + 0x24]
test edi, edi
je 0x406090
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, 0x404
je 0x405feb
cmp eax, 0xc04
je 0x405feb
mov eax, edi
sub eax, 1
je 0x405fb5
sub eax, 1
je 0x405f7f
sub eax, 1
jne 0x406026
lea ecx, [esp + 0x34]
push 0xb
push ecx
call fcn.0040d030
mov eax, dword [eax]
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0xab8], 0xb
call fcn.00401f40
add esp, 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0xaa8], bl
call fcn.00401830
jmp 0x406026
lea eax, [esp + 0x20]
push 0xa
push eax
call fcn.0040d030
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xab8], 0xa
call fcn.00401f40
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0xaa8], bl
call fcn.00401830
jmp 0x406026
lea edx, [esp + 0x28]
push 9
push edx
call fcn.0040d030
mov eax, dword [eax]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0xab8], 9
call fcn.00401f40
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xaa8], bl
call fcn.00401830
jmp 0x406026
mov eax, edi
sub eax, 1
je 0x406014
sub eax, 1
je 0x406008
sub eax, 1
jne 0x406026
push 0x43eb20
lea ecx, [esp + 0x20]
push ecx
jmp 0x40601e
push 0x43ead8
lea edx, [esp + 0x20]
push edx
jmp 0x40601e
push 0x43eac8
lea eax, [esp + 0x20]
push eax
call fcn.00401f40
add esp, 8
push edi
lea ecx, [esp + 0x18]
push str.UpdateLdxFile_in_WriteFileSummaryToLdf_function__failed_with_result_code:__d
push ecx
call fcn.00401f40
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea edx, [esp + 0x28]
push 7
push edx
call fcn.0040d030
mov eax, dword [eax]
add esp, 8
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xaa8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4060b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xaa8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4060dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xaa8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov dword [esp + 0xaa8], 0xffffffff
call fcn.00412a5d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xaa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa88]
xor ecx, esp
call fcn.0041f914
add esp, 0xa98
ret