Function at 0x41fb00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f891
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x60]
xor ebx, ebx
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x30]
push eax
push ecx
push ecx
mov dword [esp + 0x18], ebx
mov ecx, esp
mov dword [esp + 0x6c], esp
push edi
call fcn.004263d0
lea ecx, [esp + 0x2c]
call fcn.0041f7c0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x20]
push edx
mov dword [esp + 0x5c], ebx
call fcn.0041e4e0
test al, al
jne 0x41fc32
mov al, byte [edi]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
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 ecx, 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]
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push ebx
push edi
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 eax, dword [esp + 0x18]
mov byte [esp + 0x58], 1
cmp eax, ebx
jne 0x41fbd2
push str.ANSI
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov edi, eax
lea ecx, [esp + 0x10]
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x41fbd2
mov eax, dword [esp + 0x14]
push edi
push str.ANSI
push eax
call fcn.0041d990
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], edi
add esp, 0xc
mov word [ecx + edi*2], bx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 8
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.004263d0
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push str.truncation_error
call fcn.004263c0
add esi, 0x20
push esi
call fcn.0041dc80
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp ecx, ebx
je 0x41fca1
mov al, byte [ecx - 1]
cmp al, bl
je 0x41fc24
cmp al, 0xff
je 0x41fc24
dec al
mov byte [ecx - 1], al
jmp 0x41fca1
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x41fca1
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x41fca1
mov ecx, dword [esi + 0x14]
push ebx
neg eax
add ecx, eax
mov dword [esp + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 8]
add edi, eax
add esp, 0xc
cdq
idiv dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
mov dword [esi + 8], edi
add edx, eax
mov eax, edx
mov dword [esi + 0x1c], edx
push eax
push 0x30
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push ebx
call fcn.004263c0
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push str.read
call fcn.004263c0
add esi, 0x20
push esi
call fcn.0041dc80
add esp, 0x18
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x41fcc7
mov al, byte [ecx - 1]
cmp al, bl
je 0x41fcbb
cmp al, 0xff
je 0x41fcbb
dec al
mov byte [ecx - 1], al
jmp 0x41fcc7
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
cmp ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x41fcf9
mov al, byte [ecx - 1]
cmp al, bl
je 0x41fced
cmp al, 0xff
je 0x41fced
dec al
mov byte [ecx - 1], al
jmp 0x41fcf9
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 4