Function at 0x466486
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4987f4
call fcn.00497a30
sub esp, 0x280
push ebx
push esi
mov esi, edx
cmp byte [esi + 0x70], 0
mov ebx, ecx
jne 0x4667c6
push edi
push 4
pop edi
lea ecx, [ebp - 0x30]
call fcn.00483124
and dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.00483124
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00483124
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00483124
mov byte [ebp - 4], 3
cmp byte [ebx + 4], 0
je 0x4664fd
cmp edi, dword [ebp + 8]
jae 0x466500
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 0x4664e3
cmp edi, dword [ebp + 8]
je 0x466792
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 0x466535
cmp edi, dword [ebp + 8]
jae 0x466540
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 0x466523
cmp edi, dword [ebp + 8]
je 0x466792
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 0x46657b
cmp edi, dword [ebp + 8]
jae 0x466586
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 0x466569
cmp edi, dword [ebp + 8]
lea ecx, [ebp - 0x78]
je 0x466795
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x78]
call dword [eax + 0xc]
cmp byte [esi + 0x72], 0
je 0x4665c0
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 0x466792
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 0x466792
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 0x466608
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 0x466639
mov eax, dword [eax + 4]
jmp 0x46663c
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 0x46666f
mov eax, dword [eax + 4]
jmp 0x466672
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 0x4666a5
mov eax, dword [eax + 4]
jmp 0x4666a8
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.0041ad74
push 0x4a7998
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 4
call fcn.00403aed
add esp, 0x24
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00483164
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 0x466748
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 0x466783
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.004833a3
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.004833a3
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004833a3
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.004833a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004833a3
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4