Function at 0x410060
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
mov esi, dword [esp + 0x360]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Module_Information_:__r_n
push esi
stosb byte es:[edi], al
mov dword [esp + 0x34], ebx
call fcn.00410550
add esp, 8
push str.PathName
push str.Version
push str.ImageBase
push str.ModName
push str.__12s___10s___13s__s_r_n
push esi
call fcn.00410550
add esp, 0x18
push str.Version.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [esp + 0x28], ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
je 0x410102
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoA
push esi
call edi
push str.GetFileVersionInfoSizeA
push esi
mov dword [esp + 0x30], eax
call edi
push str.VerQueryValueA
push esi
mov dword [esp + 0x24], eax
call edi
mov dword [esp + 0x10], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x259]
mov byte [esp + 0x258], bl
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x61a80
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x154]
push 0x104
push ecx
push edx
mov byte [esp + 0x160], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
add esi, edx
cmp eax, 0x1000000
mov dword [esp + 0x14], esi
je 0x41018e
cmp eax, 0x40000
jne 0x410381
lea eax, [esp + 0x154]
push eax
call ebp
test eax, eax
je 0x410381
lea ecx, [esp + 0x154]
lea edx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x410381
lea eax, [esp + 0x154]
lea ecx, [esp + 0x258]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x154]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x4101f1
inc eax
jmp 0x4101f8
lea eax, [esp + 0x154]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x50]
push ecx
push eax
push str.__12s_0x_08x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x50]
push ebx
push eax
push ecx
call ebp
push eax
mov eax, dword [esp + 0x36c]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x410364
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x410364
cmp dword [esp + 0x10], ebx
je 0x410364
lea ecx, [esp + 0x24]
lea edx, [esp + 0x154]
push ecx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call eax
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4102ad
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4102ad
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push esi
push eax
lea edx, [esp + 0x15c]
push ecx
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x42307c
push esi
call dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x410320
mov ecx, dword [eax + 0xc]
xor edx, edx
mov dx, word [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x60]
push 0x4245b4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [esp + 0x50]
push edx
call ebp
cmp eax, 0xe
jge 0x41033e
lea eax, [esp + 0x50]
push eax
call ebp
lea ecx, [esp + 0x50]
mov edi, 0xe
push ecx
sub edi, eax
call ebp
mov edx, edi
lea edi, [esp + eax + 0x50]
mov eax, 0x20202020
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x41033a
mov eax, 0x20202020
mov byte [esp + 0x5d], 0x20
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov byte [esp + 0x5c], al
mov byte [esp + 0x5e], bl
mov edx, dword [esp + 0x360]
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.00410550
add esp, 8
cmp esi, ebx
je 0x410360
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x360]
lea eax, [esp + 0x154]
push eax
push str._s__r_n
push ecx
call fcn.00410550
add esp, 0xc
cmp esi, 0x80000000
jb 0x410141
mov edx, dword [esp + 0x360]
push 0x424354
push edx
call fcn.00410550
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret