Function at 0x430610
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44a114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov eax, dword [esp + 0x3c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x30], 2
jne 0x430641
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4306a2
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x34], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x50]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
call ebp
cmp dword [esp + 0x54], ebx
je 0x4306dc
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Freeze_void_]
mov eax, dword [esp + 0x54]
jmp 0x4306e1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x14]
push ebx
push ecx
lea ecx, [edx + edx]
push ecx
push eax
push esi
call ebp
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
mov dword [esp + 0x24], edx
call ebp
cmp dword [esp + 0x64], ebx
je 0x430721
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Freeze_void_]
mov eax, dword [esp + 0x64]
jmp 0x430726
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x14]
push ebx
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call ebp
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x430749
mov dword [esp + 0x10], ebx
jmp 0x430755
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x18]
push 4
push eax
push esi
call ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x430842
jmp 0x43077b
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 4]
push 0
mov cl, byte [ebx + eax]
lea edi, [ebx + eax]
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esp + 0x20]
mov eax, dword [edx]
push eax
push 0
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
push esi
mov byte [esp + 0x4c], 3
mov dword [esp + 0x30], ecx
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4307ff
mov cl, byte [eax - 1]
test cl, cl
je 0x4307f1
cmp cl, 0xff
je 0x4307f1
mov ecx, dword [esp + 0x28]
push 0
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x430804
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x24]
jmp 0x430804
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x430777
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x44]
pop edi
cmp ecx, ebx
pop ebp
je 0x430871
mov al, byte [ecx - 1]
test al, al
je 0x430865
cmp al, 0xff
je 0x430865
dec al
mov byte [ecx - 1], al
jmp 0x430871
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
cmp ecx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x4308a3
mov al, byte [ecx - 1]
test al, al
je 0x430897
cmp al, 0xff
je 0x430897
dec al
mov byte [ecx - 1], al
jmp 0x4308a3
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], ebx
cmp ecx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x4308e4
mov al, byte [ecx - 1]
test al, al
je 0x4308d8
cmp al, 0xff
je 0x4308d8
dec al
pop esi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret