Function at 0x4044d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8df4
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4fbf50]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x4fbf50]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
cmp dword [0x4ff3a8], 0
je 0x40455b
push 0x4ed7ec
push str.Pineapple.king
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40455b
push 2
push 0
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
lea ebx, [eax + 0x10]
add esp, 4
test ebx, ebx
jg 0x404562
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x404738
push ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
push ebx
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
test edi, edi
je 0x404551
push 0
push 0
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
push 0x4ed404
lea ecx, [esp + 0x68]
call fcn.00403140
push str.GB2312
lea ecx, [esp + 0x1c]
mov dword [esp + 0xcc], 0
call fcn.004030a0
push edi
lea ecx, [esp + 0x84]
mov byte [esp + 0xcc], 1
call fcn.004030a0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
lea esi, [esp + 0xa0]
mov byte [esp + 0xcc], 2
call fcn.0040d370
add esp, 4
lea ecx, [esp + 0x80]
call fcn.004030e0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc8], 5
call fcn.004030e0
lea esi, [esp + 0x34]
call fcn.0040e130
sub esp, 0x1c
mov byte [esp + 0xe4], 6
lea edx, [esp + 0xb8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
lea esi, [esp + 0x84]
call fcn.00403110
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.0040e410
push str.GB2312
lea ecx, [esp + 0x1c]
call fcn.004030a0
mov ecx, esi
push ecx
lea ecx, [esp + 0x1c]
lea ebx, [esp + 0x4c]
mov byte [esp + 0xcc], 7
call fcn.0040d2a0
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0xc8], 9
call fcn.004030e0
cmp dword [esp + 0x5c], 0x10
mov ecx, dword [esp + 0x48]
jae 0x40469e
mov ecx, ebx
call fcn.00410560
test eax, eax
jne 0x4046e8
mov eax, dword [0x4ff3a8]
mov ecx, dword [eax + 8]
lea esi, [eax + 8]
sub ecx, 0x10
mov dword [esp + 0x10], ecx
sub ecx, dword [eax + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push edx
push 0x412420
mov ebx, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.00413760
mov eax, dword [ebx + 0x10]
mov esi, dword [esi]
add esp, 0x10
cmp dword [eax + 4], esi
jae 0x4046e8
mov dword [eax + 4], esi
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, dword [0x4ff3a8]
add esp, 4
mov ebx, str.test
call fcn.00411b60
lea ecx, [esp + 0x48]
call fcn.004030e0
xor eax, eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], al
call fcn.00409690
lea ecx, [esp + 0x64]
call fcn.00409690
mov al, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b7299
mov esp, ebp
pop ebp
ret