Function at 0x42b9f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d890b
push eax
mov dword fs:[0], esp
sub esp, 0x468
push esi
mov esi, dword [esp + 0x47c]
push edi
xor edi, edi
cmp esi, edi
jne 0x42ba2c
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x42be91
push 0x4ede94
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [esp + 0xc], esi
je 0x42be91
push ebx
mov ebx, dword [esp + 0x488]
push ebp
mov eax, dword [ebx + 8]
mov ebp, dword [ebx + 4]
cmp eax, eax
mov edx, eax
je 0x42ba7f
mov esi, edx
mov edi, ebp
add edx, 0x220
mov ecx, 0x88
add ebp, 0x220
cmp edx, eax
rep movsd dword es:[edi], dword [esi]
jne 0x42ba5e
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push ebp
call fcn.004ac350
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x50], 0xffffffff
rep stosd dword es:[edi], eax
mov dword [ebx + 8], ebp
mov cx, word [0x500df0]
mov dword [esp + 0x264], eax
mov word [esp + 0x270], cx
mov dword [esp + 0x268], eax
mov ecx, 0x81
lea edi, [esp + 0x272]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov word [esp + 0x26c], ax
push esi
rep stosd dword es:[edi], eax
push 1
lea edx, [esp + 0x18]
push 4
push edx
stosw word es:[edi], ax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, 0x1388
jbe 0x42bb11
mov eax, 0x1388
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x20], 0
jbe 0x42be69
jmp 0x42bb29
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x28], 0
call ebp
mov edx, dword [esp + 0x28]
add esp, 0x10
cmp edx, 0x206
ja 0x42be69
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x270]
push esi
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x278]
push edx
push ecx
call ebp
push esi
push 1
lea edx, [esp + 0x68]
push 4
push edx
call ebp
mov edi, dword [esp + 0x4b0]
add esp, 0x20
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42bc0a
push edi
lea ecx, [esp + 0x28]
call fcn.004d2970
mov ecx, dword [esp + 0x494]
lea eax, [esp + 0x270]
push eax
push ecx
push edi
mov dword [esp + 0x48c], 0
call fcn.0042b7f0
add esp, 0xc
test eax, eax
jne 0x42bbda
lea ecx, [esp + 0x24]
mov dword [esp + 0x480], 0xffffffff
call fcn.004d2910
jmp 0x42be54
push eax
lea ecx, [esp + 0x28]
call fcn.004d2af0
mov edx, dword [eax]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x480], 0xffffffff
call fcn.004d2910
jmp 0x42bc91
mov eax, dword [esp + 0x494]
lea edx, [esp + 0x270]
push edx
push eax
push edi
call fcn.0042b7f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42be54
mov edx, dword [esp + 0x494]
mov ecx, eax
shl ecx, 4
mov ebp, dword [edx + 8]
add ecx, eax
mov eax, dword [edx + 4]
lea edi, [esp + 0x50]
shl ecx, 5
add eax, ecx
mov ecx, 0x88
mov esi, eax
add eax, 0x220
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
je 0x42bc82
lea edx, [eax - 0x220]
mov esi, eax
mov edi, edx
add eax, 0x220
mov ecx, 0x88
add edx, 0x220
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x42bc61
mov edx, dword [esp + 0x494]
mov eax, dword [edx + 8]
add eax, 0xfffffde0
mov dword [esp + 0x1c], eax
mov dword [edx + 8], eax
mov ebp, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
sub ecx, ebp
mov eax, 0x78787879
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jae 0x42bd75
mov ecx, ebx
call fcn.0042d3b0
cmp eax, 1
jbe 0x42bcca
mov ecx, ebx
call fcn.0042d3b0
mov esi, eax
jmp 0x42bccf
mov esi, 1
mov ecx, ebx
call fcn.0042d3b0
mov edi, eax
add edi, esi
mov eax, edi
jns 0x42bce0
xor eax, eax
mov edx, eax
shl edx, 4
add edx, eax
shl edx, 5
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push esi
push ebp
push eax
call fcn.0042d3e0
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.0042d420
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
add edx, 0x220
mov ecx, ebx
push edx
push eax
push ebp
call fcn.0042d3e0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.004ac350
mov eax, dword [ebx + 4]
push eax
call fcn.004d4cc1
mov ecx, edi
add esp, 4
shl ecx, 4
add ecx, edi
shl ecx, 5
add ecx, esi
mov dword [ebx + 0xc], ecx
mov ecx, ebx
call fcn.0042d3b0
inc eax
mov dword [ebx + 4], esi
mov edx, eax
shl edx, 4
add edx, eax
shl edx, 5
add edx, esi
mov dword [ebx + 8], edx
jmp 0x42be50
mov ecx, ebp
mov eax, 0x78787879
sub ecx, ebp
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x42bdec
lea ecx, [ebp + 0x220]
push ecx
push ebp
push ebp
mov ecx, ebx
call fcn.0042d3e0
mov esi, dword [ebx + 8]
lea edx, [esp + 0x50]
mov ecx, esi
mov eax, 0x78787879
sub ecx, ebp
push edx
imul ecx
sar edx, 8
mov eax, edx
mov ecx, 1
shr eax, 0x1f
add edx, eax
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.0042d420
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x42be49
mov edi, ebp
add ebp, 0x220
mov ecx, 0x88
lea esi, [esp + 0x50]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x42bdd3
jmp 0x42be49
lea eax, [ebp - 0x220]
push ebp
push ebp
push eax
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.0042d3e0
mov edx, dword [ebx + 8]
lea eax, [edx - 0x220]
cmp ebp, eax
je 0x42be27
sub eax, 0x220
sub edx, 0x220
mov ecx, 0x88
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x42be0d
lea edx, [ebp + 0x220]
mov eax, ebp
cmp ebp, edx
je 0x42be49
mov edi, eax
add eax, 0x220
mov ecx, 0x88
lea esi, [esp + 0x50]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x42be33
add dword [ebx + 8], 0x220
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x42bb23
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
add esp, 0x474
ret
mov ecx, dword [esp + 0x470]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x474
ret