Function at 0x405b10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b169
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x6b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x6cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6dc]
xor esi, esi
push 0x104
lea ecx, [esp + 0x4c4]
push esi
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], esi
call fcn.00420a40
lea edx, [esp + 0x4cc]
push edx
call fcn.00408940
lea eax, [esp + 0x4d0]
add esp, 0x10
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405b87
mov ecx, dword [0x43d8c8]
mov edx, dword [0x43d8cc]
mov dword [eax], ecx
mov ecx, dword [0x43d8d0]
mov dword [eax + 4], edx
mov dl, byte [0x43d8d4]
mov dword [eax + 8], ecx
push 0xa
lea ecx, [esp + 0x3c]
mov byte [eax + 0xc], dl
mov dword [esp + 0x20], esi
call fcn.00411fd6
mov dword [esp + 0x6d4], esi
call fcn.00411c35
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405be2
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 + 0x34], eax
mov byte [esp + 0x6d4], 1
call fcn.00411c35
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405c14
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 + 0x20], eax
lea ecx, [esp + 0x4c0]
push 0x43d570
push ecx
mov byte [esp + 0x6dc], 2
call fcn.0042065d
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x4063ba
push 0x10e
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00420a40
push ebp
push 1
lea eax, [esp + 0x68]
push 0x10e
push eax
call fcn.0042057c
push ebp
call fcn.00420274
add esp, 0x20
test eax, eax
jne 0x405ff2
nop
push 0x118
lea ecx, [esp + 0x168]
push 0
push ecx
call fcn.00420a40
push ebp
push 1
lea edx, [esp + 0x178]
push 0x118
push edx
call fcn.0042057c
add esp, 0x1c
cmp eax, 1
je 0x405cc2
push ebp
call fcn.004202a8
add esp, 4
test eax, eax
jne 0x405f61
push 0x140
lea eax, [esp + 0x280]
push 0
push eax
call fcn.00420a40
mov eax, dword [esp + 0x6ec]
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 0x405cf0
lea edi, [esp + 0x27c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d02
mov bx, word [0x43d584]
mov word [edi], bx
lea ecx, [esp + 0x60]
mov eax, 0x43d840
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405d40
test dl, dl
je 0x405d3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405d40
add eax, 2
add ecx, 2
test dl, dl
jne 0x405d20
xor eax, eax
jmp 0x405d45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405d8c
lea eax, [esp + 0x60]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d50
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405d61
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 0x405d81
mov word [edi], bx
lea eax, [esp + 0x164]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d95
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405da6
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.00408c10
mov eax, dword [esp + 0x278]
add esp, 0xc
cmp eax, dword [esp + 0x2c]
jne 0x405fea
mov ecx, dword [esp + 0x268]
cmp ecx, dword [esp + 0x28]
jne 0x405fea
push str..sec
lea ecx, [esp + 0x18]
call fcn.00402d40
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d8], 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 + 0x6d4], 4
jge 0x405e55
push esi
lea ecx, [esp + 0x18]
call fcn.004016e0
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.0041f932
push eax
call fcn.004010e0
add esp, 0xc
test esi, esi
jl 0x405fe0
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x405fe0
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 0x405eae
push esi
lea ecx, [esp + 0x1c]
call fcn.004016e0
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.0041f932
push eax
call fcn.004010e0
add esp, 0xc
test esi, esi
jl 0x405fe0
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x405fe0
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.0041f260
add esp, 8
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x6d4], 3
jne 0x405f95
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f23
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 + 0x6d4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.00420274
add esp, 4
test eax, eax
je 0x405c80
jmp 0x405ff2
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x38]
push str.UpdateLdxFile_when_fread_FileSummary_struct_with_error_code:__d
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x40]
add esp, 0xc
push 0
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
jmp 0x405ff2
add eax, 0xfffffff0
mov dword [esp + 0x1c], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fb6
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 + 0x6d4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ff2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405ff2
push 0x80070057
call fcn.004011d0
mov dword [esp + 0x1c], 1
push ebp
call fcn.00420014
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x4063ba
push 0x104
lea ecx, [esp + 0x5c8]
push 0
push ecx
call fcn.00420a40
lea edx, [esp + 0x5d0]
push edx
call fcn.00408940
lea eax, [esp + 0x5d4]
add esp, 0x10
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406032
mov ecx, dword [str.ldcab.lddat]
mov edx, dword [0x43d8bc]
mov dword [eax], ecx
mov ecx, dword [0x43d8c0]
mov dword [eax + 4], edx
mov dl, byte [0x43d8c4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x5c4]
push eax
call fcn.00408bb0
lea ecx, [esp + 0x4c4]
push ecx
call fcn.00408bb0
push 0x104
lea edx, [esp + 0x288]
push 0
push edx
call fcn.00420a40
lea eax, [esp + 0x290]
push eax
call fcn.00408940
push 0x104
lea ecx, [esp + 0x3d8]
push 0
push ecx
call fcn.00420a40
mov eax, dword [esp + 0x704]
lea edx, [esp + 0x3e0]
add esp, 0x24
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4060c0
lea ecx, [esp + 0x60]
mov eax, 0x43d840
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4060f3
test dl, dl
je 0x4060ef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4060f3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4060d3
xor eax, eax
jmp 0x4060f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406149
lea edi, [esp + 0x3bc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406104
mov dx, word [0x43d584]
lea eax, [esp + 0x60]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406120
lea edi, [esp + 0x3bc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406131
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.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406163
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 + 0x3bc]
push ecx
lea edx, [esp + 0x18]
push str.GetFilesInTree:_s
mov bl, 5
push edx
mov byte [esp + 0x6e0], bl
call fcn.00401f40
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push esi
mov ecx, 0x44d3c9
call fcn.0040bc50
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x3c0]
push ecx
call fcn.00409500
lea edx, [esp + 0x3c4]
push edx
push 2
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x294]
push edx
call fcn.00402360
movzx eax, al
add esp, 0x1c
test eax, eax
je 0x406289
lea eax, [esp + 0x4c0]
push eax
lea ecx, [esp + 0x20]
call fcn.00402d40
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x6dc], 6
call fcn.00409320
add esp, 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40623b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x3c4]
push eax
push ecx
call fcn.00404000
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x24], edi
mov byte [esp + 0x6d4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40628d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40628d
mov edi, dword [esp + 0x24]
test edi, edi
je 0x406396
mov eax, edi
sub eax, 1
je 0x4062f8
sub eax, 1
je 0x4062d1
sub eax, 1
jne 0x40632c
lea ecx, [esp + 0x30]
push 0xb
push ecx
call fcn.0040ca70
mov eax, dword [eax]
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x6e4], 0xb
call fcn.00401f40
lea ecx, [esp + 0x40]
jmp 0x40631d
lea eax, [esp + 0x1c]
push 0xa
push eax
call fcn.0040ca70
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x6e4], 0xa
call fcn.00401f40
lea ecx, [esp + 0x2c]
jmp 0x40631d
lea edx, [esp + 0x28]
push 9
push edx
call fcn.0040ca70
mov eax, dword [eax]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x6e4], 9
call fcn.00401f40
lea ecx, [esp + 0x38]
add esp, 0x10
mov byte [esp + 0x6d4], bl
call fcn.00401660
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, 0x44d3c9
call fcn.0040bc50
lea edx, [esp + 0x28]
push 7
push edx
call fcn.0040ca70
mov eax, dword [eax]
add esp, 8
push 0
push eax
mov eax, dword [esp + 0x28]
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 0x406396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x6d4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40640a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x6d4], 0xffffffff
call fcn.004120ed
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6b4]
xor ecx, esp
call fcn.0041eff4
add esp, 0x6c4
ret