Function at 0x405320
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x5b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x5c8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5d8]
mov esi, dword [esp + 0x5e0]
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call fcn.00411c35
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x405391
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
push 0x104
lea ecx, [esp + 0x4c4]
push edi
push ecx
mov dword [esp + 0x5dc], edi
call fcn.00420a40
lea edx, [esp + 0x4cc]
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4053d0
lea eax, [esp + 0x4c0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4053e2
mov edx, dword [0x43d8c8]
mov ecx, dword [0x43d8cc]
mov dword [eax], edx
mov edx, dword [0x43d8d0]
mov dword [eax + 4], ecx
mov cl, byte [0x43d8d4]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
push 0xa
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], edi
call fcn.00411fd6
lea edx, [esp + 0x4c0]
push 0x43d570
push edx
mov byte [esp + 0x5d8], 1
call fcn.0042065d
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x405aa4
push 0x10e
lea eax, [esp + 0x170]
push 0
push eax
call fcn.00420a40
push ebp
push 1
lea ecx, [esp + 0x180]
push 0x10e
push ecx
call fcn.0042057c
push ebp
call fcn.00420274
add esp, 0x20
test eax, eax
jne 0x40575c
lea ecx, [ecx]
push 0x118
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00420a40
push ebp
push 1
lea eax, [esp + 0x68]
push 0x118
push eax
call fcn.0042057c
add esp, 0x1c
cmp eax, 1
je 0x4054bc
push ebp
call fcn.004202a8
add esp, 4
test eax, eax
jne 0x40575c
cmp dword [esp + 0x18], 0
jne 0x40574b
push 0x140
lea ecx, [esp + 0x280]
push 0
push ecx
call fcn.00420a40
mov eax, dword [esp + 0x5e8]
lea edx, [esp + 0x288]
add esp, 0xc
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4054f0
lea edi, [esp + 0x27c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405502
mov bx, word [0x43d584]
mov word [edi], bx
lea ecx, [esp + 0x178]
mov eax, 0x43d840
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405540
test dl, dl
je 0x40553c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405540
add eax, 2
add ecx, 2
test dl, dl
jne 0x405520
xor eax, eax
jmp 0x405545
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40558e
lea eax, [esp + 0x178]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405552
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405563
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 0x405583
mov word [edi], bx
lea eax, [esp + 0x54]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405594
lea edi, [esp + 0x27c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4055a5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x284]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408c10
mov ecx, dword [esp + 0x168]
add esp, 0xc
cmp ecx, dword [esp + 0x34]
jne 0x4055f7
mov edx, dword [esp + 0x158]
cmp edx, dword [esp + 0x30]
je 0x4055ff
mov dword [esp + 0x18], 1
push str..sec
lea ecx, [esp + 0x18]
call fcn.00402d40
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5d4], 2
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 + 0x5d0], 3
jge 0x405651
push esi
lea ecx, [esp + 0x18]
call fcn.004016e0
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.0041f932
push eax
call fcn.004010e0
add esp, 0xc
test esi, esi
jl 0x405860
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x405860
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
mov edx, dword [esp + 0x1c]
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 0x4056aa
push esi
lea ecx, [esp + 0x20]
call fcn.004016e0
mov edx, dword [esp + 0x1c]
lea eax, [esi + 1]
push eax
push edx
call fcn.0041f932
push eax
call fcn.004010e0
add esp, 0xc
test esi, esi
jl 0x405860
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax - 8]
jg 0x405860
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x1c]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.0041f260
add esp, 8
test eax, eax
je 0x4056fb
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5d0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405723
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 + 0x5d0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40574b
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 0x405480
push ebp
call fcn.00420014
add esp, 4
cmp dword [esp + 0x18], 0
je 0x405aa4
push 0x104
lea ecx, [esp + 0x280]
push 0
push ecx
call fcn.00420a40
lea edx, [esp + 0x288]
push edx
call fcn.00408940
lea eax, [esp + 0x28c]
add esp, 0x10
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4057a0
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 + 0x27c]
push eax
call fcn.00408bb0
lea ecx, [esp + 0x4c4]
push ecx
call fcn.00408bb0
push 0x104
lea edx, [esp + 0x60]
push 0
push edx
call fcn.00420a40
lea eax, [esp + 0x68]
push eax
call fcn.00408940
push 0x104
lea ecx, [esp + 0x3d8]
push 0
push ecx
call fcn.00420a40
mov eax, dword [esp + 0x600]
lea edx, [esp + 0x3e0]
add esp, 0x24
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405827
lea ecx, [esp + 0x178]
mov eax, 0x43d840
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40586a
test dl, dl
je 0x40585c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40586a
add eax, 2
add ecx, 2
test dl, dl
jne 0x405840
xor eax, eax
jmp 0x40586f
push 0x80070057
call fcn.004011d0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4058c9
lea edi, [esp + 0x3bc]
dec edi
jmp 0x405880
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405880
mov dx, word [0x43d584]
lea eax, [esp + 0x178]
mov word [edi], dx
mov edx, eax
jmp 0x4058a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4058a0
lea edi, [esp + 0x3bc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4058b1
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 0x4058e3
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 + 0x18], eax
lea ecx, [esp + 0x3bc]
push ecx
lea edx, [esp + 0x1c]
push str.GetFilesInTree:_s
mov bl, 4
push edx
mov byte [esp + 0x5dc], bl
call fcn.00401f40
mov esi, dword [esp + 0x24]
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 + 0x188]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00402360
movzx eax, al
add esp, 0x1c
test eax, eax
je 0x405a80
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
push ecx
push edx
lea eax, [esp + 0x3c8]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00403ab0
mov edi, eax
add esp, 0x14
mov dword [esp + 0x2c], edi
test edi, edi
je 0x405a80
sub eax, 1
je 0x4059cb
sub eax, 1
jne 0x405a16
lea edx, [esp + 0x24]
push 0xa
push edx
call fcn.0040ca70
mov eax, dword [eax]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x5e0], 6
call fcn.00401f40
mov eax, dword [esp + 0x34]
jmp 0x4059f0
lea ecx, [esp + 0x28]
push 9
push ecx
call fcn.0040ca70
mov eax, dword [eax]
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x5e0], 5
call fcn.00401f40
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x5e0], bl
add esp, 0x10
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push str.UpdateLdxFile_in_WriteFileSummaryToLdf_function__failed_with_result_code:__d
push ecx
call fcn.00401f40
mov esi, dword [esp + 0x24]
add esp, 0xc
push 0
push esi
mov ecx, 0x44d3c9
call fcn.0040bc50
lea edx, [esp + 0x14]
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 + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x5d0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405aa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5d0], 0
call fcn.004120ed
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x5d0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5b0]
xor ecx, esp
call fcn.0041eff4
add esp, 0x5c0
ret