Function at 0x4117c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41277b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x238]
push 0x104
xor ebx, ebx
push eax
mov ebp, ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._me2
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov cl, byte [0x416d60]
xor eax, eax
mov byte [esp + 0x2c], cl
mov ecx, 0x41
lea edi, [esp + 0x2d]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x354]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x34], 0x104
call fcn.00411f60
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, ebx
je 0x411a5f
cmp byte [esp + 0x2c], 0x40
jne 0x411a5f
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
push 0x2c
lea ecx, [esp + 0x31]
push eax
push ecx
mov dword [esp + 0x350], ebx
call fcn.004113b0
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp edx, ebx
je 0x411a10
mov eax, dword [esp + 0x20]
mov ecx, eax
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x40
jne 0x411a14
mov eax, dword [edx + 4]
cmp eax, ebx
jne 0x41190c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
mov edx, dword [esp + 0x20]
add esp, 4
fstp dword [ebp + 4]
mov eax, dword [edx + 0x14]
cmp eax, ebx
jne 0x411929
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x20]
mov dword [ebp + 8], eax
add esp, 4
mov eax, dword [edx + 0x24]
cmp eax, ebx
jne 0x411946
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x34]
cmp eax, ebx
jne 0x41197a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
fld dword [ebp + 4]
fcomp dword [esp + 0x34c]
fnstsw ax
test ah, 0x41
je 0x4119d6
fld dword [ebp + 4]
fcomp dword [esp + 0x34c]
fnstsw ax
test ah, 0x40
je 0x411a10
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x350]
cmp ecx, eax
jle 0x411a10
mov edi, dword [esp + 0x20]
mov dword [esp + 0x344], 0xffffffff
cmp edx, edi
mov esi, edx
je 0x411a00
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x4119eb
mov edx, dword [esp + 0x1c]
push edx
call fcn.00412022
add esp, 4
mov eax, 1
jmp 0x411a61
mov eax, dword [esp + 0x20]
cmp edx, eax
mov edi, eax
je 0x411a56
lea esi, [edx + 4]
mov eax, dword [esi]
cmp eax, ebx
je 0x411a40
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x411a37
cmp al, 0xff
je 0x411a37
dec al
mov byte [ecx], al
jmp 0x411a40
push ecx
call fcn.00412022
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esi, 0x10
lea edx, [esi - 4]
cmp edx, edi
jne 0x411a1d
mov edx, dword [esp + 0x1c]
push edx
call fcn.00412022
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x338
ret 0xc