Function at 0x454ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x454aec
movzx eax, byte [ecx + 0x41]
test eax, eax
jne 0x454aff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4554c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb4]
test eax, eax
ja 0x45515b
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jae 0x455147
mov eax, dword [ebp - 0xbc]
mov dword [eax + 0x18], 0xf
mov edx, dword [ebp - 0xbc]
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0xbc]
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x454bb0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
jmp 0x454bb9
mov eax, dword [ebp - 0xbc]
add eax, 4
mov ecx, dword [ebp - 0xa0]
mov byte [eax], 0
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x9c]
mov dword [edx + 4], eax
mov ebx, dword [ebp - 0xbc]
mov dword [ebx + 0x18], ecx
mov edi, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb4]
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x454c02
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
jmp 0x454c0b
mov eax, dword [ebp - 0xbc]
add eax, 4
mov edx, dword [ebp - 0xb4]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x90]
test eax, eax
ja 0x4550bd
mov eax, dword [ebp - 0x44]
lea esi, [ebp - 0x58]
cmp eax, 0x10
cmovae esi, dword [ebp - 0x58]
test esi, esi
je 0x454c59
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
cmp edx, esi
ja 0x454c59
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
cmp esi, edx
jbe 0x454c5f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [ebp - 0x5c]
cmp edx, 0xfffffffe
je 0x454c84
mov eax, dword [edx + 0x18]
cmp eax, 0x10
jb 0x454c74
mov eax, dword [edx + 4]
jmp 0x454c77
lea eax, [ebp - 0x58]
add eax, dword [edx + 0x14]
cmp esi, eax
jb 0x454c84
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
lea ebx, [ebp - 0x58]
cmp eax, 0x10
cmovae ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x454cbd
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
cmp edx, ebx
ja 0x454cbd
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
cmp ebx, edx
jbe 0x454cc3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [ebp - 0x5c]
cmp edx, 0xfffffffe
je 0x454ce8
mov eax, dword [edx + 0x18]
cmp eax, 0x10
jb 0x454cd8
mov eax, dword [edx + 4]
jmp 0x454cdb
lea eax, [ebp - 0x58]
add eax, dword [edx + 0x14]
cmp ebx, eax
jb 0x454ce8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
add edx, 0x44
add edi, ebx
lea ebx, [ebp - 0x24]
push ebx
push edi
push esi
push edx
call dword [eax + 0x18]
test eax, eax
je 0x454d8a
cmp eax, 1
je 0x454d91
mov dword [ebp - 0x28], 0
cmp eax, 3
jne 0x454d56
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jae 0x454e95
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, edx
mov eax, 1
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x58], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jae 0x454e87
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x58], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x41], 0
mov eax, dword [ebp - 0x44]
lea ebx, [ebp - 0x58]
cmp eax, 0x10
cmovae ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x454dc7
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
cmp edx, ebx
ja 0x454dc7
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
cmp ebx, edx
jbe 0x454dcd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [ebp - 0x5c]
cmp edx, 0xfffffffe
je 0x454df2
mov eax, dword [edx + 0x18]
cmp eax, 0x10
jb 0x454de2
mov eax, dword [edx + 4]
jmp 0x454de5
lea eax, [ebp - 0x58]
add eax, dword [edx + 0x14]
cmp ebx, eax
jb 0x454df2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebp - 0x24]
sub esi, ebx
jne 0x454fef
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x41]
test edx, edx
je 0x454faa
test esi, esi
jne 0x454c23
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [ebp - 0x64], 8
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x68], eax
mov ecx, dword [edx]
sub ecx, dword [ebp - 0x48]
cmp ecx, 8
ja 0x454e3b
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xlen_void_]
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x90], eax
cmp eax, 0xfffffffe
jbe 0x454e55
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xlen_void_]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x90]
jb 0x454ea3
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x454c15
mov esi, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x48], eax
cmp esi, 0x10
cmovae edx, dword [ebp - 0x58]
mov byte [edx], al
jmp 0x454c15
push dword [ebp - 0x58]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x454d62
push dword [ebp - 0x58]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x454d2b
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x90]
lea eax, [ebp - 0x5c]
or ebx, 0xf
cmp ebx, 0xfffffffe
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xa0], ebx
jbe 0x454ee3
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
jmp 0x454efd
mov ecx, dword [ebp - 0x44]
mov eax, 0xaaaaaaab
mul dword [ebp - 0xa0]
shr ecx, 1
shr edx, 1
cmp edx, ecx
jb 0x454f84
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 5
mov ebx, dword [ebp - 0xa0]
add ebx, 1
jne 0x454f1d
xor ebx, ebx
jmp 0x454f6b
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x454f6b
mov dword [ebp - 0xe0], 0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe4], ecx
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.MSVCR80.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4b4118
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0xfc]
mov dword [eax], 0x4b7b94
push edx
call sub.MSVCR80.dll__CxxThrowException
push ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 4
jmp 0x454b5d
mov eax, dword [ebp - 0x44]
shr eax, 1
neg eax
add eax, 0xfffffffe
cmp eax, dword [ebp - 0x44]
jb 0x454efd
mov eax, dword [ebp - 0x44]
shr eax, 1
add eax, dword [ebp - 0x44]
mov dword [ebp - 0xa0], eax
jmp 0x454efd
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0
cmp eax, 0x10
jae 0x454fe4
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, edx
mov eax, 1
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x58], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x58]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x454fb9
mov eax, dword [ebp - 0x44]
lea ebx, [ebp - 0x58]
cmp eax, 0x10
cmovae ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x455025
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
cmp edx, ebx
ja 0x455025
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x58]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
cmp ebx, edx
jbe 0x45502b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [ebp - 0x5c]
cmp edx, 0xfffffffe
je 0x455050
mov eax, dword [edx + 0x18]
cmp eax, 0x10
jb 0x455040
mov eax, dword [edx + 4]
jmp 0x455043
lea eax, [ebp - 0x58]
add eax, dword [edx + 0x14]
cmp ebx, eax
jb 0x455050
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x4c]
push esi
push 1
push ebx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x45507b
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x41]
test edx, edx
je 0x454faa
jmp 0x454c23
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0
cmp eax, 0x10
jae 0x4550b2
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x58], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x58]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45508a
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov eax, dword [eax + 0x14]
cmp edx, 1
jne 0x4550ed
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x18]
cmp ecx, 0x10
jb 0x4550de
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 4]
jmp 0x4550e4
mov ecx, dword [ebp - 0x68]
add ecx, 4
movzx edx, byte [ebp - 0x60]
mov byte [ecx + eax], dl
jmp 0x455119
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x18]
cmp ecx, 0x10
jb 0x455100
mov edx, dword [ebp - 0x68]
mov edx, dword [edx + 4]
jmp 0x455106
mov edx, dword [ebp - 0x68]
add edx, 4
push dword [ebp - 0x64]
add eax, edx
movsx edx, byte [ebp - 0x60]
push edx
push eax
call fcn.0049e7ac
add esp, 0xc
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x78]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x68]
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x455135
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 4]
jmp 0x45513b
mov eax, dword [ebp - 0x68]
add eax, 4
mov edx, dword [ebp - 0x78]
mov byte [eax + edx], 0
jmp 0x454c23
mov eax, dword [ebp - 0xbc]
push dword [eax + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x454b7d
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x455174
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
jmp 0x45517d
mov eax, dword [ebp - 0xbc]
add eax, 4
push dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa0]
add edx, 1
push eax
push edx
push dword [ebp - 0x9c]
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
jmp 0x454b6b
mov eax, dword [ebp - 0x7c]
test eax, eax
ja 0x4553e0
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jae 0x4553cc
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x18], 0xf
mov edx, dword [ebp - 0x84]
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0x84]
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x4552d8
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
jmp 0x4552e1
mov eax, dword [ebp - 0x84]
add eax, 4
mov ecx, dword [ebp - 0x74]
mov byte [eax], 0
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x70]
mov dword [edx + 4], eax
mov ebx, dword [ebp - 0x84]
mov dword [ebx + 0x18], ecx
mov edi, dword [ebp - 0x84]
mov esi, dword [ebp - 0x7c]
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x455321
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
jmp 0x45532a
mov eax, dword [ebp - 0x84]
add eax, 4
mov edx, dword [ebp - 0x7c]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x30]
test eax, eax
ja 0x45534b
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 4
jmp 0x454c23
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jne 0x455374
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x455366
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
jmp 0x45536c
mov edx, dword [ebp - 0x40]
add edx, 4
movzx eax, byte [ebp - 0x38]
mov byte [edx], al
jmp 0x45539e
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x455387
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
jmp 0x45538d
mov edx, dword [ebp - 0x40]
add edx, 4
push dword [ebp - 0x3c]
movsx eax, byte [ebp - 0x38]
push eax
push edx
call fcn.0049e7ac
add esp, 0xc
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x4553ba
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
jmp 0x4553c0
mov eax, dword [ebp - 0x40]
add eax, 4
mov edx, dword [ebp - 0x3c]
mov byte [eax + edx], 0
jmp 0x455338
mov eax, dword [ebp - 0x84]
push dword [eax + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4552a5
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x4553f9
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
jmp 0x455402
mov eax, dword [ebp - 0x84]
add eax, 4
push dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
add edx, 1
push eax
push edx
push dword [ebp - 0x70]
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
jmp 0x455293
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [ebp - 0x44], 0xf
xor eax, eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x38], al
mov ecx, dword [edx]
cmp ecx, 8
jne 0x4554f5
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xlen_void_]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 8
cmp eax, 8
jae 0x455331
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x80], 8
shr ecx, 1
mov dword [ebp - 0x74], 0xf
lea eax, [ebp - 0x5c]
cmp ecx, 5
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], edx
ja 0x4555b1
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x74]
add ebx, 1
jne 0x45554d
xor ebx, ebx
jmp 0x45559b
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x45559b
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xa8], ecx
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCR80.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4b4118
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xc8]
mov dword [eax], 0x4b7b94
push edx
call sub.MSVCR80.dll__CxxThrowException
push ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x455288
mov eax, dword [ebp - 0x44]
mov edx, eax
shr edx, 1
neg edx
add edx, 0xfffffffe
cmp eax, edx
ja 0x455533
mov edx, dword [ebp - 0x44]
mov eax, edx
shr eax, 1
add edx, eax
mov dword [ebp - 0x74], edx
jmp 0x455533