Function at 0x416170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ecc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10260
call fcn.0041ad20
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.00418430
mov dword [ebp - 0x10254], 0x65ef0
lea eax, [ebp - 0x10254]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00418d60
mov ecx, dword [ebp + 8]
call fcn.00403ca3
mov dword [ebp - 0x10038], eax
lea eax, [ebp - 0x10038]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00418d60
call fcn.0040a111
mov dword [ebp - 0x10050], eax
lea eax, [ebp - 0x10074]
push eax
mov ecx, dword [ebp + 8]
call fcn.00417720
mov dword [ebp - 0x10080], 0
jmp 0x416247
lea ecx, [ebp - 0x10074]
call fcn.00404c8e
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.00417ef0
push eax
lea ecx, [ebp - 0x10074]
call fcn.00404c30
movzx ecx, al
test ecx, ecx
je 0x4166a5
lea ecx, [ebp - 0x10074]
call fcn.004176e0
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.0041b0ac
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4162a4
mov dword [ebp - 0x1025c], 0
jmp 0x416305
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041b0ac
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ad20
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.0040a117
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.0041b0ac
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.00417980
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.00419260
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.0041b0ac
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.0041b0ac
lea ecx, [ebp - 0x10074]
call fcn.004176e0
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.0041b0ac
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4163e1
mov dword [ebp - 0x1025c], 0
jmp 0x416442
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041b0ac
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ad20
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.0040a117
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.0041b0ac
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.00419260
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.0041b0ac
lea ecx, [ebp - 0x10074]
call fcn.004176e0
add eax, 0x44
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00418d60
lea ecx, [ebp - 0x10074]
call fcn.004176e0
add eax, 0x1c
mov ecx, eax
call fcn.00403ca3
mov dword [ebp - 0x1008c], eax
lea eax, [ebp - 0x1008c]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.00418d60
lea eax, [ebp - 0x10098]
push eax
lea ecx, [ebp - 0x10074]
call fcn.004176e0
add eax, 0x1c
mov ecx, eax
call fcn.00417720
lea eax, [ebp - 0x100a4]
push eax
lea ecx, [ebp - 0x10074]
call fcn.004176e0
add eax, 0x1c
mov ecx, eax
call fcn.00417ef0
mov dword [ebp - 0x100b0], 0
jmp 0x416544
lea ecx, [ebp - 0x10098]
call fcn.0040253b
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.00404c30
movzx ecx, al
test ecx, ecx
je 0x4166a0
lea ecx, [ebp - 0x10098]
call fcn.004176e0
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.0041b0ac
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x416598
mov dword [ebp - 0x1025c], 0
jmp 0x4165f9
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041b0ac
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ad20
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.0040a117
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.0041b0ac
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.00417980
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.00419260
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.0041b0ac
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.0041b0ac
jmp 0x41652a
jmp 0x41622d
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.0041b0ac
mov dword [ebp - 0x1005c], eax
cmp dword [ebp - 0x1005c], 0
jne 0x4166d2
mov dword [ebp - 0x1025c], 0
jmp 0x416733
mov esi, esp
mov eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.0041b0ac
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x10044], ecx
mov eax, dword [ebp - 0x10044]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ad20
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.0040a117
mov dword [ebp - 0x1025c], eax
mov esi, esp
push 0x422290
mov eax, dword [ebp - 0x1025c]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.0041b0ac
mov dword [ebp - 0x100bc], eax
cmp dword [ebp - 0x100bc], 0
jne 0x416762
jmp 0x4167ba
mov esi, esp
mov eax, dword [ebp - 0x100bc]
push eax
lea ecx, [ebp - 0x1002c]
call fcn.004187b0
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.0041b0ac
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.0041b0ac
jmp 0x4167b3
mov dword [ebp - 4], 0xffffffff
lea esp, [ebp - 0x1027c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4167e4]
call fcn.0041b0cf
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