Function at 0x466a95
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x498a74
call fcn.00497cb0
sub esp, 0x280
push ebx
push esi
mov esi, edx
cmp byte [esi + 0x70], 0
mov ebx, ecx
jne 0x466dd5
push edi
push 4
pop edi
lea ecx, [ebp - 0x30]
call fcn.00483344
and dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.00483344
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00483344
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00483344
mov byte [ebp - 4], 3
cmp byte [ebx + 4], 0
je 0x466b0c
cmp edi, dword [ebp + 8]
jae 0x466b0f
movsx eax, byte [edi + ebx]
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call dword [eax + 0x10]
inc edi
cmp byte [edi + ebx], 0
jne 0x466af2
cmp edi, dword [ebp + 8]
je 0x466da1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
push 0x4a4630
lea ecx, [ebp - 0x30]
call dword [eax + 8]
jmp 0x466b44
cmp edi, dword [ebp + 8]
jae 0x466b4f
movsx eax, al
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call dword [eax + 0x10]
inc edi
mov al, byte [edi + ebx]
test al, al
jne 0x466b32
cmp edi, dword [ebp + 8]
je 0x466da1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x9c]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
push 0x4a4630
lea ecx, [ebp - 0x30]
call dword [eax + 8]
jmp 0x466b8a
cmp edi, dword [ebp + 8]
jae 0x466b95
movsx eax, al
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call dword [eax + 0x10]
inc edi
mov al, byte [edi + ebx]
test al, al
jne 0x466b78
cmp edi, dword [ebp + 8]
lea ecx, [ebp - 0x78]
je 0x466da4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x78]
call dword [eax + 0xc]
cmp byte [esi + 0x72], 0
je 0x466bcf
lea eax, [esi + 0x44]
neg eax
sbb eax, eax
lea ecx, [esi + 0x48]
and eax, ecx
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
test al, al
pop ecx
pop ecx
jne 0x466da1
lea eax, [esi + 0x20]
neg eax
sbb eax, eax
lea ecx, [esi + 0x24]
and eax, ecx
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
test al, al
pop ecx
pop ecx
jne 0x466da1
push 4
lea eax, [ebp - 0x28c]
push 0x4a7a14
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 0x4c]
add esp, 0xc
push 0x10
pop ebx
cmp dword [ebp - 0x38], ebx
jae 0x466c17
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
inc ecx
push ecx
push eax
lea eax, [ebp - 0x288]
push eax
call sub.MSVCR71.dll_memcpy
mov edi, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x88]
add esp, 0xc
add edi, 5
cmp dword [eax + 0x18], ebx
jb 0x466c48
mov eax, dword [eax + 4]
jmp 0x466c4b
add eax, 4
inc ecx
push ecx
push eax
lea eax, [ebp + edi - 0x28c]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0xc0]
lea edi, [edi + eax + 1]
lea eax, [esi + 0xac]
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x466c7e
mov eax, dword [eax + 4]
jmp 0x466c81
add eax, 4
inc ecx
push ecx
push eax
lea eax, [ebp + edi - 0x28c]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xe4]
lea edi, [edi + eax + 1]
lea eax, [esi + 0xd0]
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x466cb4
mov eax, dword [eax + 4]
jmp 0x466cb7
add eax, 4
inc ecx
push ecx
push eax
lea eax, [ebp + edi - 0x28c]
push eax
call sub.MSVCR71.dll_memcpy
mov esi, dword [esi + 0xe4]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xf8]
push 0x4a478c
push eax
lea esi, [edi + esi + 1]
call fcn.0041ae55
push 0x4a7998
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 4
call fcn.00403bb3
add esp, 0x24
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00483384
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xc0]
push str.RegCheckServ_U
lea ecx, [ebp - 0xc0]
call dword [eax + 0x14]
cmp dword [ebp - 0xa4], ebx
mov eax, dword [ebp - 0xb8]
jae 0x466d57
lea eax, [ebp - 0xb8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x466d92
push ebx
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x28c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.004835c3
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.004835c3
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004835c3
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.004835c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004835c3
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4