Function at 0x4302b0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44a0dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov eax, dword [esp + 0x40]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x30], 3
jne 0x4302e1
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 0x430353
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 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_]
push 1
lea ecx, [esp + 0x50]
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 + 0x60]
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 + 0x70]
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 + 0x54]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x14]
push 4
push edx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
call edi
cmp dword [esp + 0x54], ebx
je 0x43038c
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 0x430391
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 + 0x10]
push ebx
push ecx
lea ecx, [edx + edx]
push ecx
push eax
push esi
call edi
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x14]
push 4
push ecx
push esi
mov dword [esp + 0x20], edx
call edi
cmp dword [esp + 0x64], ebx
je 0x4303d1
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 0x4303d6
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]
push ebp
lea edx, [esp + 0x14]
push ebx
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x4303fd
mov dword [esp + 0x10], ebx
jmp 0x430409
mov ecx, dword [ebp + 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 edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x4304da
jmp 0x430432
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 4]
push 0
mov cl, byte [ebx + eax]
lea ebp, [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 ebp
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], 4
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x430497
lea ecx, [esp + 0x20]
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 + 0x24]
jmp 0x43049c
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 + 0x28]
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [edx + edx]
push ecx
push eax
push esi
call edi
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 3
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 0x43042b
xor ebx, ebx
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
mov dword [esp + 0x24], edx
call edi
mov eax, dword [esp + 0x78]
pop ebp
cmp eax, ebx
je 0x43050b
lea ecx, [esp + 0x70]
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 + 0x74]
jmp 0x430510
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 + 0x78]
lea edx, [esp + 0x10]
push ebx
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x44]
pop edi
cmp ecx, ebx
je 0x430550
mov al, byte [ecx - 1]
test al, al
je 0x430544
cmp al, 0xff
je 0x430544
dec al
mov byte [ecx - 1], al
jmp 0x430550
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], ebx
cmp ecx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x430582
mov al, byte [ecx - 1]
test al, al
je 0x430576
cmp al, 0xff
je 0x430576
dec al
mov byte [ecx - 1], al
jmp 0x430582
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x50], ebx
cmp ecx, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
je 0x4305b4
mov al, byte [ecx - 1]
test al, al
je 0x4305a8
cmp al, 0xff
je 0x4305a8
dec al
mov byte [ecx - 1], al
jmp 0x4305b4
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x60], ebx
cmp ecx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
je 0x4305f5
mov al, byte [ecx - 1]
test al, al
je 0x4305e9
cmp al, 0xff
je 0x4305e9
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