Function at 0x43cd60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e859
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x492984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x140]
mov ecx, esi
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::IsEmpty_void_const]
test al, al
je 0x43cda9
xor eax, eax
jmp 0x43d438
push str.saved.txt
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString___thiscall_DMString::operator_char_const__]
mov esi, dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
lea eax, [ebp - 0x40]
push 0x4662dc
push eax
mov dword [ebp - 4], 0
call esi
mov edi, eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call esi
push dword [edi]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wfopen]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x2c]
add esp, 0x18
mov edi, eax
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call esi
test edi, edi
jne 0x43ce0f
xor esi, esi
jmp 0x43d426
push edi
call dword [sym.imp.MSVCR120.dll__fileno]
push eax
call dword [sym.imp.MSVCR120.dll__filelength]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call sub.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_
push edi
push esi
push 1
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.MSVCR120.dll_fread]
push edi
mov esi, eax
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0xd0]
add esp, 0x20
mov byte [eax + esi], 0
push 0
push 0
call dword [sym.imp.byondcore.dll_public:_void___thiscall_IParam::constructor_char_const___char_const__]
push str.saved_params
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call dword [sym.imp.byondcore.dll_public:_struct_IString____thiscall_IString::operator_char_const__]
mov edi, dword [ebp - 0x4c]
mov ecx, edi
push 1
call fcn.00433270
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.byondcore.dll_public:_static_void___cdecl_IFace::StringToParams_char_const___struct_IParam____int__]
movdqa xmm0, xmmword [0x466510]
add esp, 0xc
mov dword [ebp - 0x9c], vtable.CMap_struct_DMString__char_const___int__int_.0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0x11
movdqu xmmword [ebp - 0x90], xmm0
cmp dword [ebp - 0x54], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0
jle 0x43d33f
xor esi, esi
mov dword [ebp - 0x3c], esi
lea esp, [esp]
lea ecx, [ebp - 0x28]
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_void_]
mov ecx, dword [ebp - 0x30]
add ecx, 4
mov byte [ebp - 4], 4
add ecx, esi
call dword [sym.imp.byondcore.dll_public:_char_const____thiscall_IString::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_char_const__]
push 0x2e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::ReverseFind_char_const]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x24]
cmp eax, 0xffffffff
je 0x43d311
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString___thiscall_DMString::Left_int_]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::GetLength_void_const]
sub eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
dec eax
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString___thiscall_DMString::Right_int_]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_struct_DMString_const__]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call esi
push 1
push dword [ebp - 0x28]
mov ecx, edi
call fcn.00433410
mov ecx, eax
mov dword [ebp - 0x34], eax
test ecx, ecx
jne 0x43cfab
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov ecx, edi
call fcn.00433410
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x43d044
cmp dword [ecx + 8], 1
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
jne 0x43d040
test eax, eax
je 0x43cfc6
lea ecx, [eax - 0x23c]
jmp 0x43cfc8
xor ecx, ecx
mov eax, dword [ecx]
lea edx, [ebp - 0x70]
push edx
call dword [eax + 0x194]
cmp dword [ebp - 0x70], 0
je 0x43d006
push 0x46cae8
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::operator_char_const__const]
test al, al
jne 0x43cffe
push str.size
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::operator_char_const__const]
test al, al
je 0x43d006
lea ecx, [ebp - 0x24]
jmp 0x43d317
push 0x46cae8
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::operator_char_const__const]
test al, al
je 0x43d03d
cmp dword [edi + 0x26d4], 0
je 0x43d029
lea ecx, [ebp - 0x24]
jmp 0x43d317
push dword [ebp - 0x28]
lea ecx, [ebp - 0x9c]
call fcn.00426e60
mov dword [eax], 1
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x43d06f
push dword [ebp - 0x28]
mov ecx, edi
call fcn.004338a0
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x43d06f
push eax
push dword [ebp - 0x28]
mov ecx, edi
call fcn.004336b0
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x43d06f
lea ecx, [ebp - 0x24]
jmp 0x43d317
push 1
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, eax
call dword [sym.imp.byondwin.dll_public:_void___thiscall_CICtrl::GetParams_struct_IParam__const__int_]
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x43cffe
cmp byte [eax], 0
je 0x43cffe
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call dword [sym.imp.byondcore.dll_public:_char_const____thiscall_IString::operator_char_const__void_const]
push eax
call dword [sym.imp.byondcore.dll_public:_static_void___cdecl_IFace::StringToParams_char_const___struct_IParam____int__]
mov eax, dword [ebp - 0x44]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x43d0ea
xor edi, edi
mov ecx, dword [ebp - 0x40]
add ecx, 4
add ecx, edi
call dword [sym.imp.byondcore.dll_public:_char_const____thiscall_IString::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_int___thiscall_DMString::CompareNoCase_char_const__const]
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x43d0e7
inc esi
add edi, 0x2c
cmp esi, eax
jl 0x43d0c0
mov edi, dword [ebp - 0x4c]
cmp esi, eax
jge 0x43d2eb
mov esi, dword [ebp - 0x34]
cmp esi, dword [ebp - 0x64]
jne 0x43d11d
push str.is_minimized
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::operator_char_const__const]
test al, al
je 0x43d11d
mov ecx, dword [ebp - 0x3c]
add ecx, 0x10
add ecx, dword [ebp - 0x30]
push 0
call dword [sym.imp.byondcore.dll_public:_struct_IString____thiscall_IString::operator_char_const__]
test esi, esi
je 0x43d28e
cmp dword [esi + 8], 1
jne 0x43d28e
push str.size
lea ecx, [ebp - 0x24]
call dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::operator_char_const__const]
test al, al
je 0x43d28e
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x9c]
call fcn.004367a0
test eax, eax
jne 0x43d28e
mov ecx, dword [esi]
lea edx, [ebp - 0x20]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
add ecx, 0x10
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
add eax, ecx
mov dword [ebp - 0x60], 3
push eax
lea ecx, [ebp - 0x60]
call dword [sym.imp.byondcore.dll_public:_struct_ISize____thiscall_ISize::operator_struct_IString_const__]
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x43d1e9
cmp dword [ebp - 0x58], 0
je 0x43d1e9
mov ecx, dword [ebp - 0x20]
mov eax, ecx
sub eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov eax, esi
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x58]
cdq
sub eax, edx
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x5c]
sar eax, 1
neg eax
add esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x43d1ef
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + edx]
sub esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
add eax, esi
mov dword [ebp - 0x14], eax
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x20]
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x80]
push eax
call fcn.0044c460
mov ecx, dword [ebp - 0x18]
add esp, 0x14
mov eax, dword [ebp - 0x78]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
cmp ecx, eax
jle 0x43d232
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x80]
cmp ecx, eax
jge 0x43d247
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x74]
cmp ecx, eax
jle 0x43d25c
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
cmp ecx, eax
jge 0x43d271
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x34]
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x20]
mov eax, esp
mov ecx, dword [ecx]
movdqu xmmword [eax], xmm0
mov edx, dword [ecx]
call dword [edx + 0x74]
jmp 0x43d30e
push 0
push 0
lea ecx, [ebp - 0xfc]
call dword [sym.imp.byondcore.dll_public:_void___thiscall_IParam::constructor_char_const___char_const__]
push dword [ebp - 0x24]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call dword [sym.imp.byondcore.dll_public:_struct_IString____thiscall_IString::operator_char_const__]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
add ecx, 0x10
add eax, ecx
lea ecx, [ebp - 0xec]
push eax
call dword [sym.imp.byondcore.dll_public:_struct_IString____thiscall_IString::operator_struct_IString_const__]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0xfc]
push 1
push eax
call dword [sym.imp.byondwin.dll_public:_void___thiscall_CICtrl::SetParams_struct_IParam__const__int_]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 5
call dword [sym.imp.byondcore.dll_public:_void___thiscall_IParam::destructor_void_]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x43d30e
push dword [sym.imp.byondcore.dll_public:_void___thiscall_IParam::destructor_void_]
lea esi, [eax - 4]
push dword [esi]
push 0x2c
push eax
call fcn.004582e2
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x24]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call esi
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
inc eax
add esi, 0x2c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], esi
cmp eax, dword [ebp - 0x54]
jl 0x43cee0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x43d362
push dword [sym.imp.byondcore.dll_public:_void___thiscall_IParam::destructor_void_]
lea esi, [eax - 4]
push dword [esi]
push 0x2c
push eax
call fcn.004582e2
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
push dword [ebp - 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
xor esi, esi
add esp, 4
cmp dword [edi + 0x2258], esi
jle 0x43d3b4
xor eax, eax
mov dword [ebp - 0x2c], eax
lea esp, [esp]
test esi, esi
js 0x43d453
cmp esi, dword [edi + 0x2258]
jge 0x43d453
mov ecx, dword [edi + 0x2254]
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x2c]
inc esi
add eax, 0x10
mov dword [ebp - 0x2c], eax
cmp esi, dword [edi + 0x2258]
jl 0x43d380
xor esi, esi
cmp dword [edi + 0x2230], esi
jle 0x43d3f8
xor eax, eax
mov dword [ebp - 0x2c], eax
test esi, esi
js 0x43d453
cmp esi, dword [edi + 0x2230]
jge 0x43d453
mov ecx, dword [edi + 0x222c]
mov ecx, dword [ecx + eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x2c]
inc esi
add eax, 0xc
mov dword [ebp - 0x2c], eax
cmp esi, dword [edi + 0x2230]
jl 0x43d3c3
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
mov esi, 1
mov dword [ebp - 0x9c], vtable.CMap_struct_DMString__char_const___int__int_.0
call fcn.0044cb10
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call dword [sym.imp.byondcore.dll_public:_void___thiscall_IParam::destructor_void_]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
call sub.mfc120u.dll_Ordinal_2341
int3