Function at 0x423c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453743
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x46c664]
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 [0x4707e9], 0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xc4], edx
je 0x423cfc
cmp ecx, 0x45
jne 0x423cfc
push ebx
push ecx
push 0x45f2c8
push ecx
push eax
push 0x46e528
call fcn.0040e660
add esp, 0xc
push eax
call fcn.0040dc20
add esp, 0xc
push eax
call fcn.0040e660
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004258a0
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 6
jne 0x423cdb
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x423cdb
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x423cfc
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x423cf4
or eax, 4
push 0
push eax
call fcn.0040e590
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 0x423d33
mov ebx, edx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xb4]
cmp ecx, eax
jae 0x423d70
sub eax, ecx
mov edi, eax
cmp edi, 1
jb 0x423d70
cmp dword [ebx + 0x14], 8
jb 0x423d53
mov eax, dword [ebx]
jmp 0x423d55
mov eax, ebx
lea eax, [eax + ecx*2]
mov dword [ebp - 0xac], eax
mov ecx, edi
test edi, edi
je 0x423d70
cmp word [eax], 0xa
je 0x423d88
add eax, 2
dec ecx
jne 0x423d64
mov dword [ebp - 0xac], 0xffffffff
mov edi, dword [ebp - 0xac]
or eax, 0xffffffff
jmp 0x423e13
test eax, eax
je 0x423d70
mov esi, 1
lea edx, [ebp - 0xd4]
mov ecx, eax
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x423dcd
add ecx, 2
add edx, 2
dec esi
jne 0x423da0
mov ebx, dword [ebp - 0xb8]
cmp dword [ebx + 0x14], 8
jb 0x423df4
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 1
mov edi, eax
mov dword [ebp - 0xac], edi
jmp 0x423e02
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x423db1
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 0x423d58
mov ecx, ebx
sub eax, ecx
sar eax, 1
mov edi, eax
mov dword [ebp - 0xac], edi
cmp edi, 0xffffffff
jne 0x423e0b
or eax, edi
jmp 0x423e13
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.00417b60
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x188], 0x45d3f0
mov dword [ebp - 0x178], 0x45d578
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.0040c710
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.0040c8b0
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 0x42416f
lea edx, [ebp - 0x198]
push edx
call fcn.00434c25
add esp, 4
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0043499d
add esp, 8
push 0xa
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0xd0]
xor ecx, ecx
call fcn.00417b60
mov ebx, eax
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0x1a8]
push 2
push eax
call fcn.0043125a
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.0043125a
add esp, 0xc
push 0x45e198
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x178]
push edx
mov edi, eax
call fcn.00411110
add esp, 4
push eax
call fcn.0040dc20
mov esi, eax
add esp, 8
test esi, esi
je 0x423f95
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.0043125a
add esp, 0xc
push 0x45e198
push ecx
mov ecx, dword [ebp - 0xa4]
push ecx
push esi
mov edi, eax
call fcn.00411110
add esp, 4
push eax
call fcn.0040dc20
mov esi, eax
add esp, 8
test esi, esi
je 0x423ff5
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.0043125a
add esp, 0xc
push 0x45d9d4
push ecx
mov ecx, dword [ebp - 0xa8]
push ecx
push esi
mov edi, eax
call fcn.00411110
add esp, 4
push eax
call fcn.0040dc20
mov esi, eax
add esp, 8
test esi, esi
je 0x424055
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 0x45ebf0
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 0x45f2d0
push ecx
mov ecx, dword [ebp - 0xc8]
push ecx
push ecx
push edx
push ecx
push 0x45f2d0
push ecx
push ebx
push esi
call fcn.0040e660
add esp, 0xc
push eax
call fcn.0040dc20
add esp, 0xc
push eax
call fcn.0041bd10
add esp, 4
push eax
call fcn.00426540
add esp, 0xc
push eax
call fcn.0040dc20
add esp, 0xc
push eax
call fcn.0040e660
add esp, 0xc
push eax
call fcn.0040dc20
add esp, 8
mov byte [ebp - 4], 7
cmp dword [ebp - 0x34], 8
jb 0x4240f1
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043266a
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 0x42412c
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.004052e0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx]
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x42420a
cmp dword [eax + 0x14], 8
jb 0x42420c
mov eax, dword [eax]
jmp 0x42420c
push ebx
lea eax, [ebp - 0x58]
push 0x17
push eax
call fcn.0043125a
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 0x45ebf0
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push ecx
push 0x45f2d0
push ecx
lea edx, [ebp - 0x178]
push 0x45d498
push edx
call fcn.0040dc20
add esp, 0xc
push eax
call fcn.0040dc20
add esp, 0xc
push eax
call fcn.0040e660
add esp, 0xc
push eax
call fcn.0040dc20
mov ecx, dword [ebp - 0xc4]
add esp, 8
cmp ecx, ebx
je 0x424134
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 0x424134
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 0x4244dd
cmp dword [ebp - 0xac], esi
jne 0x4244dd
mov byte [ebp - 4], 7
cmp dword [ebp - 0x70], 8
jb 0x424253
mov edx, dword [ebp - 0x84]
push edx
call fcn.0043266a
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 0x424479
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 0x4242d8
mov edx, dword [ebp - 0x160]
mov eax, dword [edx]
push eax
call fcn.0043266a
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 0x424389
mov edi, dword [eax]
test edi, edi
je 0x424380
push 0
lea ecx, [ebp - 0xdc]
call fcn.004306a3
mov byte [ebp - 4], 0x11
mov eax, dword [edi + 4]
test eax, eax
je 0x42435a
cmp eax, 0xffffffff
jae 0x42435a
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.004306cb
and esi, edi
je 0x424380
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.0043266a
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x16c]
call fcn.00430522
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.0043060b
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x424434
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043266a
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 0x423d31
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.00432675
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], al
lea ecx, [ebp - 0x128]
call fcn.0040d930
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.0043060b
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4244cf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043266a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jmp 0x42445d
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.0040e990
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 0x4630f4
lea edx, [ebp - 0x68]
push edx
call fcn.00436bf2
int3