Function at 0x4234c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452de3
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc0], ecx
movzx ecx, word [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xcc], edi
cmp byte [0x46f7e9], 0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xc4], edx
je 0x4235ac
cmp ecx, 0x45
jne 0x4235ac
push ebx
push ecx
push 0x45e2b8
push ecx
push eax
push 0x46d528
call fcn.0040e870
add esp, 0xc
push eax
call fcn.0040de50
add esp, 0xc
push eax
call fcn.0040e870
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00424f70
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 6
jne 0x42358b
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x42358b
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4235ac
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4235a4
or eax, 4
push 0
push eax
call fcn.0040e7a0
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x170]
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xad], 1
mov dword [ebp - 0xd4], 0xa
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], eax
jmp 0x4235e3
mov ebx, edx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xb4]
cmp ecx, eax
jae 0x423620
sub eax, ecx
mov edi, eax
cmp edi, 1
jb 0x423620
cmp dword [ebx + 0x14], 8
jb 0x423603
mov eax, dword [ebx]
jmp 0x423605
mov eax, ebx
lea eax, [eax + ecx*2]
mov dword [ebp - 0xac], eax
mov ecx, edi
test edi, edi
je 0x423620
cmp word [eax], 0xa
je 0x423638
add eax, 2
dec ecx
jne 0x423614
mov dword [ebp - 0xac], 0xffffffff
mov edi, dword [ebp - 0xac]
or eax, 0xffffffff
jmp 0x4236c3
test eax, eax
je 0x423620
mov esi, 1
lea edx, [ebp - 0xd4]
mov ecx, eax
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x42367d
add ecx, 2
add edx, 2
dec esi
jne 0x423650
mov ebx, dword [ebp - 0xb8]
cmp dword [ebx + 0x14], 8
jb 0x4236a4
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 1
mov edi, eax
mov dword [ebp - 0xac], edi
jmp 0x4236b2
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x423661
mov ebx, dword [ebp - 0xb8]
mov ecx, eax
sub ecx, dword [ebp - 0xac]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add edi, edx
add eax, 2
jmp 0x423608
mov ecx, ebx
sub eax, ecx
sar eax, 1
mov edi, eax
mov dword [ebp - 0xac], edi
cmp edi, 0xffffffff
jne 0x4236bb
or eax, edi
jmp 0x4236c3
mov eax, edi
sub eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0x2c]
push eax
mov edx, ebx
call fcn.00417c20
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x188], 0x45c570
mov dword [ebp - 0x178], 0x45c578
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov byte [ebp - 4], 1
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 2
or dword [ebp - 0xcc], 1
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x188]
push edx
call fcn.0040c960
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [ebp - 0x170]
call fcn.0040cb00
mov byte [ebp - 4], 4
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov byte [ebp - 4], 7
cmp byte [ebp - 0xad], bl
je 0x423a1f
lea edx, [ebp - 0x198]
push edx
call fcn.00434395
add esp, 4
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0043410d
add esp, 8
push 0xa
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0xd0]
xor ecx, ecx
call fcn.00417c20
mov ebx, eax
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0x1a8]
push 2
push eax
call fcn.004309ca
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x178]
mov ecx, dword [ecx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x178]
push edx
push ecx
call eax
mov ecx, dword [ebp - 0x178]
mov eax, dword [ecx + 4]
add esp, 0xc
lea eax, [ebp + eax - 0x178]
mov edx, 0x30
push 0
mov word [eax + 0x40], dx
lea eax, [ebp - 0x1c8]
push 2
push eax
call fcn.004309ca
add esp, 0xc
push 0x45d198
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x178]
push edx
mov edi, eax
call fcn.004111a0
add esp, 4
push eax
call fcn.0040de50
mov esi, eax
add esp, 8
test esi, esi
je 0x423845
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push eax
mov eax, dword [edi]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add esp, 0xc
mov edx, 0x30
push 0
mov word [eax + esi + 0x40], dx
lea eax, [ebp - 0x1b8]
push 2
push eax
call fcn.004309ca
add esp, 0xc
push 0x45d198
push ecx
mov ecx, dword [ebp - 0xa4]
push ecx
push esi
mov edi, eax
call fcn.004111a0
add esp, 4
push eax
call fcn.0040de50
mov esi, eax
add esp, 8
test esi, esi
je 0x4238a5
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push eax
mov eax, dword [edi]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add esp, 0xc
mov edx, 0x30
push 0
mov word [eax + esi + 0x40], dx
lea eax, [ebp - 0x1d8]
push 0xa
push eax
call fcn.004309ca
add esp, 0xc
push 0x45c9d4
push ecx
mov ecx, dword [ebp - 0xa8]
push ecx
push esi
mov edi, eax
call fcn.004111a0
add esp, 4
push eax
call fcn.0040de50
mov esi, eax
add esp, 8
test esi, esi
je 0x423905
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push eax
mov eax, dword [edi]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add esp, 0xc
push 0x45dc00
push ecx
mov edx, 0x20
mov word [eax + esi + 0x40], dx
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0x2c]
push eax
push ecx
push 0x45e2c0
push ecx
mov ecx, dword [ebp - 0xc8]
push ecx
push ecx
push edx
push ecx
push 0x45e2c0
push ecx
push ebx
push esi
call fcn.0040e870
add esp, 0xc
push eax
call fcn.0040de50
add esp, 0xc
push eax
call fcn.004050d0
add esp, 4
push eax
call fcn.00425cf0
add esp, 0xc
push eax
call fcn.0040de50
add esp, 0xc
push eax
call fcn.0040e870
add esp, 0xc
push eax
call fcn.0040de50
add esp, 8
mov byte [ebp - 4], 7
cmp dword [ebp - 0x34], 8
jb 0x4239a1
mov eax, dword [ebp - 0x48]
push eax
call fcn.00431dda
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0xc4], ecx
je 0x4239dc
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xc0]
push eax
call edx
mov edi, dword [ebp - 0xac]
xor ebx, ebx
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x188]
push edx
call fcn.004054f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx]
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x423aba
cmp dword [eax + 0x14], 8
jb 0x423abc
mov eax, dword [eax]
jmp 0x423abc
push ebx
lea eax, [ebp - 0x58]
push 0x17
push eax
call fcn.004309ca
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x178]
mov ecx, dword [ecx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x178]
push edx
push ecx
call eax
add esp, 0xc
push 0x45dc00
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push ecx
push 0x45e2c0
push ecx
lea edx, [ebp - 0x178]
push 0x45c490
push edx
call fcn.0040de50
add esp, 0xc
push eax
call fcn.0040de50
add esp, 0xc
push eax
call fcn.0040e870
add esp, 0xc
push eax
call fcn.0040de50
mov ecx, dword [ebp - 0xc4]
add esp, 8
cmp ecx, ebx
je 0x4239e4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0xc8]
push edx
mov edx, dword [ebp - 0xc0]
push edx
call eax
jmp 0x4239e4
xor eax, eax
push ebx
lea esi, [ecx + ecx]
lea ecx, [ebp - 0xac]
push ecx
push esi
push eax
push edx
mov dword [ebp - 0xac], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x423d8d
cmp dword [ebp - 0xac], esi
jne 0x423d8d
mov byte [ebp - 4], 7
cmp dword [ebp - 0x70], 8
jb 0x423b03
mov edx, dword [ebp - 0x84]
push edx
call fcn.00431dda
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], ax
cmp edi, 0xffffffff
je 0x423d29
inc edi
mov dword [ebp - 0xb4], edi
mov byte [ebp - 0xad], al
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0xbc], ecx
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x170]
mov dword [ebp - 0xac], ecx
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [ebp - 4], 0xf
test byte [ebp - 0x130], 1
je 0x423b88
mov edx, dword [ebp - 0x160]
mov eax, dword [edx]
push eax
call fcn.00431dda
add esp, 4
mov eax, dword [ebp - 0x160]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x150]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x140]
mov dword [edx], ebx
mov eax, dword [ebp - 0x15c]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x14c]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x13c]
mov dword [edx], ebx
and dword [ebp - 0x130], 0xfffffffe
mov dword [ebp - 0x134], ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x138]
mov ebx, eax
test eax, eax
je 0x423c39
mov edi, dword [eax]
test edi, edi
je 0x423c30
push 0
lea ecx, [ebp - 0xdc]
call fcn.0042fe13
mov byte [ebp - 4], 0x11
mov eax, dword [edi + 4]
test eax, eax
je 0x423c0a
cmp eax, 0xffffffff
jae 0x423c0a
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xdc]
call fcn.0042fe3b
and esi, edi
je 0x423c30
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00431dda
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x16c]
call fcn.0042fc92
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x188]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x170]
mov dword [ebp - 0xbc], eax
mov dword [ebp + edx - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x128]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0xbc], ecx
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0
mov edx, ecx
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042fd7b
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x423ce4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00431dda
add esp, 4
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp eax, dword [edx + 0x10]
jbe 0x4235e1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], al
lea ecx, [ebp - 0x128]
call fcn.0040db60
lea ecx, [ebp - 0x128]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0
mov edx, ecx
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042fd7b
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x423d7f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00431dda
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jmp 0x423d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor edx, edx
push 0x1b
mov eax, str.WinAPI::writeFile___failed.
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.0040eba0
mov byte [ebp - 4], 0xa
xor eax, eax
push ebx
mov ecx, esi
mov word [ebp - 0x64], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
call fcn.00401a90
mov byte [ebp - 4], 0xa
push 0x462084
lea edx, [ebp - 0x68]
push edx
call fcn.00436362
int3