Function at 0x405020
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a8f0
push 0x459fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x127c
call fcn.00459eb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
or esi, 0xffffffff
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x405076
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax], ebx
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x405084.6
jmp dword [eax*4 + 0x405d7c]
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x405084.6
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.00401220
add esp, 8
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je case.0x405084.6
push 0x5c
mov esi, dword [ebp - 0x5c]
push esi
call fcn.0045a180
add esp, 8
mov edx, eax
test edx, edx
jne 0x4050cd
mov dword [ebp - 0x34], eax
mov edx, esi
lea esi, [ebp - 0x34]
jmp 0x4050d3
mov byte [edx], 0
mov ebx, edx
inc edx
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0x884]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x503
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x884]
push ecx
lea eax, [ebp - 0x24]
push eax
push edx
push esi
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00404c80
add esp, 0x18
test ebx, ebx
je 0x40510d
mov byte [ebx], 0x5c
test eax, eax
je 0x405149
mov edx, dword [ebp + 0xc]
push edx
push str.ERROR:_doGetVariableValue___failed_to_query_registry_value__s._n
lea eax, [ebp - 0x29c]
push eax
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.0043e010
add esp, 0x10
mov esi, 0x401a
jmp case.0x405084.6
mov edi, dword [ebp - 0x20]
cmp edi, 0x503
jb 0x40518d
mov edx, dword [ebp + 0xc]
push edx
push edi
push str.ERROR:_doGetVariableValue___buffer_is_too_small_to_receive_registry_value_of__d_bytes_from__s._n
lea eax, [ebp - 0x29c]
push eax
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.0043e010
add esp, 0x14
mov esi, 0x401b
jmp case.0x405084.6
mov esi, 1
mov eax, dword [ebp - 0x24]
cmp edi, esi
jge 0x4051c9
cmp eax, esi
je 0x405315
cmp eax, 2
je 0x4051c9
cmp eax, 7
je 0x4051c9
mov edx, dword [ebp + 0xc]
push edx
push edi
push str.ERROR:_doGetVariableValue___registry_value_of__d_bytes_is_invalid_from__s._n
lea eax, [ebp - 0x29c]
push eax
call fcn.00458ee7
mov dword [ebp - 0x2a0], esi
jmp 0x405174
cmp eax, esi
je 0x405315
cmp eax, 2
je 0x405315
cmp eax, 7
je 0x40531a
cmp eax, 4
je 0x40528a
cmp eax, 5
je 0x40528f
cmp eax, 3
jne 0x405255
lea edx, [edi + edi + 1]
push edx
call fcn.00459619
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40521a
mov esi, 0x4099
jmp case.0x405084.6
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx + ecx + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x884]
push edx
call fcn.00439f40
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x405d4e
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push str.ERROR:_doGetVariableValue___got_an_unexpected_type___d__reading_the_registry_value__s._n
lea edx, [ebp - 0x29c]
push edx
call fcn.00458ee7
mov dword [ebp - 0x2a0], esi
lea eax, [ebp - 0x2a0]
push eax
call fcn.0043e010
add esp, 0x14
mov esi, 0x401b
jmp case.0x405084.6
cmp eax, 5
jne 0x4052c8
xor ecx, ecx
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
test esi, esi
jle 0x4052c8
lea edx, [ebp + edi - 0x885]
jmp 0x4052b0
mov al, byte [ebp + ecx - 0x884]
mov bl, byte [edx]
mov byte [ebp + ecx - 0x884], bl
mov byte [edx], al
inc ecx
dec edx
cmp ecx, esi
jl 0x4052b0
push 0x10
call fcn.00459619
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4052e3
mov esi, 0x4099
jmp case.0x405084.6
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x884]
push edx
push 0x4696c0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00458ee7
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x405d4e
cmp eax, 7
jne 0x405354
xor ecx, ecx
test edi, edi
jle 0x405354
mov al, byte [ebp + ecx - 0x884]
test al, al
jne 0x40534f
mov dl, byte [ebp + ecx - 0x883]
test dl, dl
je 0x405340
mov byte [ebp + ecx - 0x884], 0x20
jmp 0x40534f
test al, al
jne 0x40534f
mov al, byte [ebp + ecx - 0x883]
test al, al
je 0x405354
inc ecx
cmp ecx, edi
jl 0x405320
lea eax, [ebp - 0x884]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405360
sub eax, edx
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.00459619
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x405387
mov esi, 0x4099
jmp case.0x405084.6
lea ecx, [ebp - 0x884]
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x405390
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x405d4e
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x405084.6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x4053f0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x380]
push eax
call fcn.00435bf0
add esp, 0x10
test eax, eax
jne 0x4053f0
mov dword [ebp - 0x38], 1
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0xf90]
rep stosd dword es:[edi], eax
push 0x503
lea ecx, [ebp - 0xf90]
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.004014e0
push 0x4698e4
mov edi, dword [ebp + 0xc]
push edi
call fcn.00459902
add esp, 0x14
mov esi, eax
test esi, esi
je 0x4054fd
push 2
push 0
push esi
call fcn.0045985d
push esi
call fcn.0045978d
mov ebx, eax
push 0
push 0
push esi
call fcn.0045985d
lea edi, [ebx + 1]
push edi
call fcn.00459619
add esp, 0x20
mov edx, eax
mov dword [ebp - 0x1c], edx
push esi
test edx, edx
jne 0x405473
call fcn.00459521
add esp, 4
mov esi, 0x4099
jmp case.0x405084.6
mov ecx, edi
xor eax, eax
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test ebx, ebx
jle 0x4054e8
push ebx
push 1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00459489
mov edi, eax
push esi
call fcn.00459521
add esp, 0x14
cmp edi, ebx
je 0x4054f0
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push str.ERROR:_doGetVariableValue___failed_to_read__d_bytes_from__s_n
lea edx, [ebp - 0x29c]
push edx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea eax, [ebp - 0x2a0]
push eax
call fcn.0043e010
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0045932f
add esp, 0x18
mov esi, 0x400d
jmp case.0x405084.6
call fcn.00459521
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
jmp 0x405d4e
push edi
push str.ERROR:_doGetVariableValue___failed_to_open__s_n
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea edx, [ebp - 0x2a0]
push edx
call fcn.0043e010
add esp, 0x10
mov esi, 0x400c
jmp case.0x405084.6
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0x884]
rep stosd dword es:[edi], eax
mov ebx, 0x503
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x884]
push ecx
lea edx, [ebp - 0x24]
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsAgentMon.exe
push 0x80000002
call fcn.0044b2c0
add esp, 0x18
test eax, eax
jne 0x405579
cmp dword [ebp - 0x24], 1
je 0x4055ca
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0x884]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
push ebx
lea eax, [ebp - 0x884]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 1
jl 0x405183
mov al, byte [ebp - 0x884]
test al, al
je 0x405183
push 0x5c
lea ecx, [ebp - 0x884]
push ecx
call fcn.0045a180
add esp, 8
test eax, eax
je 0x4055ca
mov byte [eax], 0
lea eax, [ebp - 0x884]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4055d3
sub eax, edx
cmp byte [ebp + eax - 0x885], 0x5c
je 0x405602
lea edi, [ebp - 0x884]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4055f0
mov dx, word [0x469b10]
mov word [edi], dx
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x405625
lea eax, [ebp - 0x884]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405613
sub eax, edx
mov byte [ebp + eax - 0x885], cl
jmp 0x40564f
cmp eax, 4
jne case.0x405084.6
cmp byte [ebp - 0x883], 0x3a
jne 0x405183
cmp byte [ebp - 0x882], 0x5c
jne 0x405183
mov byte [ebp - 0x881], 0
lea eax, [ebp - 0x884]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405658
sub eax, edx
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.00459619
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40567f
mov esi, 0x4099
jmp case.0x405084.6
lea ecx, [ebp - 0x884]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x405687
mov eax, dword [ebp - 0x1c]
jmp 0x405d49
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0x884]
rep stosd dword es:[edi], eax
push 0x503
lea edx, [ebp - 0x884]
push edx
push str._TEMP_
call fcn.00401450
add esp, 0xc
test eax, eax
jne case.0x405084.6
lea eax, [ebp - 0x884]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4056d2
sub eax, edx
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.00459619
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4056f9
mov esi, 0x4099
jmp case.0x405084.6
lea ecx, [ebp - 0x884]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x405701
mov eax, dword [ebp - 0x1c]
jmp 0x405d49
mov edi, dword [ebp + 0xc]
test edi, edi
je case.0x405084.6
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405723
sub eax, edx
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.00459619
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40574a
mov esi, 0x4099
jmp case.0x405084.6
mov ecx, edi
mov edx, eax
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x405750
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
jmp 0x405d4e
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x405084.6
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x4057b0
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x380]
push ecx
call fcn.00435bf0
add esp, 0x10
test eax, eax
jne 0x4057b0
mov dword [ebp - 0x38], 1
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0xf90]
rep stosd dword es:[edi], eax
push 0x503
lea edx, [ebp - 0xf90]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.004014e0
push 0x4698e4
mov esi, dword [ebp + 0xc]
push esi
call fcn.00459902
add esp, 0x14
test eax, eax
je 0x4058b6
push eax
call fcn.00459521
mov dword [ebp - 0x20], 0x50
push 0x51
call fcn.00459619
add esp, 8
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x405817
mov esi, 0x4099
jmp case.0x405084.6
mov ecx, dword [ebp - 0x20]
inc ecx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x80
lea eax, [ebp - 0x1114]
push eax
push 0x100
lea ecx, [ebp - 0x1294]
push ecx
push 0x10
lea edx, [ebp - 0x7c]
push edx
push 0x20
lea eax, [ebp - 0x9c]
push eax
push 0x80
lea ecx, [ebp - 0x1194]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
call fcn.00403540
add esp, 0x34
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
jne 0x405d49
push eax
call fcn.0045932f
push esi
push str.ERROR:_doGetVariableValue___found_no_version_number_information_in__s_n
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea edx, [ebp - 0x2a0]
push edx
call fcn.0043e010
add esp, 0x14
mov esi, 0x4039
jmp case.0x405084.6
push esi
push str.ERROR:_doGetVariableValue___failed_to_find__s_to_get_version_number_n
lea edx, [ebp - 0x29c]
push edx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea eax, [ebp - 0x2a0]
push eax
call fcn.0043e010
add esp, 0x10
mov esi, 0x400c
jmp case.0x405084.6
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x405084.6
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x405934
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x380]
push ecx
call fcn.00435bf0
add esp, 0x10
test eax, eax
jne 0x405934
mov dword [ebp - 0x38], 1
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0xf90]
rep stosd dword es:[edi], eax
push 0x503
lea edx, [ebp - 0xf90]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.004014e0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ebx, dword [ebp + 0xc]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40599d
push 0
push 0x80
push 3
push 0
push 1
push 0
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x405adf
lea ecx, [ebp - 0x3c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0x28
push 0x29
call fcn.00459619
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4059d6
mov esi, 0x4099
jmp case.0x405084.6
mov ecx, dword [ebp - 0x20]
inc ecx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x50]
cmp edi, 0xffffffff
jne 0x405a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x405a3d
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045932f
push esi
push ebx
push str.ERROR:_doGetVariableValue___failed_to_retrieve_size_of__s_due_to_error__d_n
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea edx, [ebp - 0x2a0]
push edx
call fcn.0043e010
add esp, 0x18
mov esi, 0x4039
jmp case.0x405084.6
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
mov esi, 0x10
mov dword [ebp - 0x6c], esi
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
shld edx, eax, cl
shl eax, cl
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], esi
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
shld edx, eax, cl
shl eax, cl
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
or eax, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
push edx
push eax
push str._I64d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00458ee7
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
jmp 0x405d4e
push ebx
push str.ERROR:_doGetVariableValue___failed_to_open__s_to_get_file_size_n
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea edx, [ebp - 0x2a0]
push edx
call fcn.0043e010
add esp, 0x10
mov esi, 0x400c
jmp case.0x405084.6
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x405084.6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x405b5d
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x380]
push eax
call fcn.00435bf0
add esp, 0x10
test eax, eax
jne 0x405b5d
mov dword [ebp - 0x38], 1
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0xf90]
rep stosd dword es:[edi], eax
push 0x503
lea ecx, [ebp - 0xf90]
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.004014e0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x405bc6
push 0
push 0x80
push 3
push 0
push 1
push 0
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x405c63
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00423c50
mov dword [ebp - 0x20], 0x28
push 0x29
call fcn.00459619
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x405c0d
mov esi, 0x4099
jmp case.0x405084.6
mov ecx, dword [ebp - 0x20]
inc ecx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movzx eax, byte [ebp - 0x3e]
push eax
mov eax, dword [ebp - 0x40]
movzx ecx, ah
push ecx
movzx edx, al
push edx
movzx eax, byte [ebp - 0x41]
push eax
movzx ecx, byte [ebp - 0x42]
push ecx
movzx edx, byte [ebp - 0x43]
push edx
movzx eax, byte [ebp - 0x44]
push eax
push str._02d_02d__02d__02d___02d:_02d:_02d
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00458ee7
add esp, 0x24
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
jmp 0x405d4e
push edi
push str.ERROR:_doGetVariableValue___failed_to_open__s_to_get_last_modified_date_n
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00458ee7
mov dword [ebp - 0x2a0], 1
lea edx, [ebp - 0x2a0]
push edx
call fcn.0043e010
add esp, 0x10
mov esi, 0x400c
jmp case.0x405084.6
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x405084.6
push 0x3a
push eax
call fcn.004590c0
add esp, 8
mov edi, eax
test edi, edi
je case.0x405084.6
mov ebx, edi
mov eax, dword [ebp + 0xc]
sub ebx, eax
push ebx
push eax
lea eax, [ebp - 0x988]
push eax
call fcn.00458f80
mov byte [ebp + ebx - 0x988], 0
inc edi
push 0x2e
push edi
call fcn.0045a180
add esp, 0x14
mov dword [ebp - 0x60], eax
test eax, eax
je case.0x405084.6
mov ebx, eax
sub ebx, edi
push ebx
push edi
lea ecx, [ebp - 0xa8c]
push ecx
call fcn.00458f80
add esp, 0xc
mov byte [ebp + ebx - 0xa8c], 0
mov eax, dword [ebp - 0x60]
inc eax
lea edx, [ebp - 0x1094]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405d11
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x1094]
push eax
push 1
lea ecx, [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x988]
push edx
call fcn.0044eee0
add esp, 0x14
test eax, eax
jne case.0x405084.6
mov eax, dword [ebp - 0x1c]
test eax, eax
je case.0x405084.6
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x405d66
lea edx, [ebp - 0x380]
push edx
call fcn.00435790
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret