Function at 0x4117c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418bc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10260
call fcn.00415360
push ebx
push esi
push edi
lea edi, [ebp - 0x10270]
mov ecx, 0x4098
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0
push 0x10000
lea eax, [ebp - 0x10014]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00413770
mov dword [ebp - 0x10254], 0x65ef0
lea eax, [ebp - 0x10254]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.004140a0
mov ecx, dword [ebp + 8]
call fcn.004031a3
mov dword [ebp - 0x10038], eax
lea eax, [ebp - 0x10038]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.004140a0
call fcn.00401ec1
mov dword [ebp - 0x10050], eax
lea eax, [ebp - 0x10074]
push eax
mov ecx, dword [ebp + 8]
call fcn.00412d30
mov dword [ebp - 0x10080], 0
jmp 0x411897
lea ecx, [ebp - 0x10074]
call fcn.00403b78
mov eax, dword [ebp - 0x10080]
add eax, 1
mov dword [ebp - 0x10080], eax
lea eax, [ebp - 0x10248]
push eax
mov ecx, dword [ebp + 8]
call fcn.00412d80
push eax
lea ecx, [ebp - 0x10074]
call fcn.004031b9
movzx ecx, al
test ecx, ecx
je 0x411cf5
lea ecx, [ebp - 0x10074]
call fcn.00412dd0
mov esi, esp
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4118f4
mov dword [ebp - 0x1025c], 0
jmp 0x411955
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041561c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040727b
mov dword [ebp - 0x1025c], eax
mov esi, esp
mov eax, dword [ebp - 0x1025c]
push eax
lea ecx, [ebp - 0x1023c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x10264], eax
mov ecx, dword [ebp - 0x10264]
mov dword [ebp - 0x10268], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10268]
push edx
lea eax, [ebp - 0x10218]
push eax
call fcn.00413020
add esp, 8
mov dword [ebp - 0x1026c], eax
mov ecx, dword [ebp - 0x1026c]
mov dword [ebp - 0x10270], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10270]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.004145a0
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x10218]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x1023c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041561c
lea ecx, [ebp - 0x10074]
call fcn.00412dd0
add eax, 0x28
mov esi, esp
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x411a31
mov dword [ebp - 0x1025c], 0
jmp 0x411a92
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041561c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040727b
mov dword [ebp - 0x1025c], eax
mov esi, esp
mov eax, dword [ebp - 0x1025c]
push eax
lea ecx, [ebp - 0x101f4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x10264], eax
mov ecx, dword [ebp - 0x10264]
mov dword [ebp - 0x10268], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10268]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.004145a0
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x101f4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041561c
lea ecx, [ebp - 0x10074]
call fcn.00412dd0
add eax, 0x44
push eax
lea ecx, [ebp - 0x1002c]
call fcn.004140a0
lea ecx, [ebp - 0x10074]
call fcn.00412dd0
add eax, 0x1c
mov ecx, eax
call fcn.004031a3
mov dword [ebp - 0x1008c], eax
lea eax, [ebp - 0x1008c]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.004140a0
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00412dd0
add eax, 0x1c
mov ecx, eax
call fcn.00412d30
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10074]
call fcn.00412dd0
add eax, 0x1c
mov ecx, eax
call fcn.00412d80
mov dword [ebp - 0x100b0], 0
jmp 0x411b94
lea ecx, [ebp - 0x10098]
call fcn.004022e6
mov eax, dword [ebp - 0x100b0]
add eax, 1
mov dword [ebp - 0x100b0], eax
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10098]
call fcn.004031b9
movzx ecx, al
test ecx, ecx
je 0x411cf0
lea ecx, [ebp - 0x10098]
call fcn.00412dd0
mov esi, esp
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x411be8
mov dword [ebp - 0x1025c], 0
jmp 0x411c49
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041561c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040727b
mov dword [ebp - 0x1025c], eax
mov esi, esp
mov eax, dword [ebp - 0x1025c]
push eax
lea ecx, [ebp - 0x101d0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x10264], eax
mov ecx, dword [ebp - 0x10264]
mov dword [ebp - 0x10268], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10268]
push edx
lea eax, [ebp - 0x101ac]
push eax
call fcn.00413020
add esp, 8
mov dword [ebp - 0x1026c], eax
mov ecx, dword [ebp - 0x1026c]
mov dword [ebp - 0x10270], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x10270]
push edx
lea ecx, [ebp - 0x1002c]
call fcn.004145a0
mov byte [ebp - 4], 4
mov esi, esp
lea ecx, [ebp - 0x101ac]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041561c
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x101d0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, esp
call fcn.0041561c
jmp 0x411b7a
jmp 0x41187d
mov esi, esp
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x411d22
mov dword [ebp - 0x1025c], 0
jmp 0x411d83
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041561c
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.00415360
mov dword [ebp - 0x10260], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x10050]
push edx
mov eax, dword [ebp - 0x10044]
push eax
mov ecx, dword [ebp - 0x1005c]
push ecx
mov edx, dword [ebp - 0x10260]
push edx
call fcn.0040727b
mov dword [ebp - 0x1025c], eax
mov esi, esp
push 0x41b8f8
mov eax, dword [ebp - 0x1025c]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041561c
mov dword [ebp - 0x100bc], eax
cmp dword [ebp - 0x100bc], 0
jne 0x411db2
jmp 0x411e0a
mov esi, esp
mov eax, dword [ebp - 0x100bc]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00413af0
push eax
push 1
lea ecx, [ebp - 0x10014]
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.0041561c
mov esi, esp
mov eax, dword [ebp - 0x100bc]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.0041561c
jmp 0x411e03
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x1027c]
push edx
mov ecx, ebp
push eax
lea edx, [0x411e34]
call fcn.0041563f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret