Function at 0x42a5fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0x79], 0
mov word [ebp - 0x76], 0x27
mov word [ebp - 0x78], 0x22
lea eax, [ebp - 0xcc]
xor ecx, ecx
mov edx, 0x20
call fcn.004047d4
mov dword [ebp - 0x28], 1
mov word [ebp - 0x3a], 0x3b
mov word [ebp - 0xcc], 0x20
mov word [ebp - 0xca], 9
mov word [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x60], 1
xor eax, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x42aa1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x22
je 0x42a69b
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x27
jne 0x42a6aa
mov eax, dword [ebp - 0x2c]
movzx edi, word [eax]
add dword [ebp - 0x2c], 2
jmp 0x42a970
xor edi, edi
jmp 0x42a970
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
movzx esi, word [eax]
test si, si
je 0x42a6c8
cmp si, 0x20
jbe 0x42a6b3
mov eax, dword [ebp - 0x2c]
cmp di, word [eax]
je 0x42a983
mov edx, 0x42b03c
mov ecx, 4
mov eax, dword [ebp - 0x2c]
call fcn.00414cb4
test eax, eax
jne 0x42a6fe
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 8]
mov word [ebp - 0x3a], ax
add dword [ebp - 0x2c], 0xa
jmp 0x42a970
mov edx, 0x42b048
mov ecx, 7
mov eax, dword [ebp - 0x2c]
call fcn.00414cb4
test eax, eax
jne 0x42a79e
add dword [ebp - 0x2c], 0xe
mov ebx, dword [ebp - 0x2c]
jmp 0x42a737
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x20
jne 0x42a733
mov eax, dword [ebp - 0x2c]
cmp di, word [eax + 2]
jne 0x42a748
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x42a748
mov eax, dword [ebp - 0x2c]
cmp di, word [eax]
jne 0x42a721
mov eax, dword [ebp - 0x2c]
sub eax, ebx
sar eax, 1
jns 0x42a754
adc eax, 0
cmp eax, 0x20
jge 0x42a772
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
sar ecx, 1
jns 0x42a765
adc ecx, 0
lea eax, [ebp - 0xcc]
mov edx, ebx
call fcn.00419f18
mov eax, dword [ebp - 0x2c]
sub eax, ebx
sar eax, 1
jns 0x42a77e
adc eax, 0
mov word [ebp + eax*2 - 0xcc], 0
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x42a970
add dword [ebp - 0x2c], 2
jmp 0x42a970
mov edx, 0x42b058
mov ecx, 5
mov eax, dword [ebp - 0x2c]
call fcn.00414cb4
test eax, eax
jne 0x42a7dc
add dword [ebp - 0x2c], 0xa
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jle 0x42a93d
jmp 0x42a970
mov edx, 0x42b064
mov ecx, 8
mov eax, dword [ebp - 0x2c]
call fcn.00414cb4
test eax, eax
jne 0x42a80b
add dword [ebp - 0x2c], 0x10
mov word [ebp - 0x76], 0x60
mov word [ebp - 0x78], 0x27
mov byte [ebp - 0x79], 1
jmp 0x42a970
mov edx, 0x42b078
mov ecx, 7
mov eax, dword [ebp - 0x2c]
call fcn.00414cb4
test eax, eax
jne 0x42a83a
add dword [ebp - 0x2c], 0xe
mov word [ebp - 0x76], 0x60
mov word [ebp - 0x78], 0x27
mov byte [ebp - 0x79], 1
jmp 0x42a970
mov edx, 0x42b088
mov ecx, 7
mov eax, dword [ebp - 0x2c]
call fcn.00414cb4
test eax, eax
jne 0x42a93d
add dword [ebp - 0x2c], 0xe
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x58], eax
jmp 0x42a918
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2a
jne 0x42a882
add dword [ebp - 0x2c], 2
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
jmp 0x42a92d
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jle 0x42a93d
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2d
jne 0x42a8ca
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 2
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jle 0x42a93d
jmp 0x42a8d0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x50], 0
jle 0x42a900
cmp dword [ebp - 0x54], 0x20
jge 0x42a900
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jg 0x42a900
inc dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
dec ecx
mov eax, 1
shl eax, cl
or dword [ebp - 0x60], eax
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jle 0x42a8e4
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2c
jne 0x42a90f
add dword [ebp - 0x2c], 2
jmp 0x42a918
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x2a
jne 0x42a92d
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x42a92d
mov eax, dword [ebp - 0x2c]
cmp di, word [eax]
jne 0x42a867
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x44]
jle 0x42a970
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
jmp 0x42a970
push 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0xa
lea ecx, [ebp - 0xd4]
mov edx, 1
mov eax, 0x42b0a4
call fcn.0042ed3c
mov dword [ebp - 0x10], 1
jmp 0x42b030
cmp dword [ebp - 0x2c], 0
je 0x42a983
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
jne 0x42a6b7
cmp dword [ebp - 0x44], 1
jle 0x42aa1c
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
mov edx, eax
add edx, edx
mov eax, dword [0x435970]
call fcn.0042dc90
mov dword [0x435970], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
push eax
mov eax, 0x44e6d0
mov ecx, 1
mov edx, dword [0x4284f4]
call fcn.00407cf0
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x44]
jge 0x42aa09
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x435970]
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + 0x18]
add cx, word [ebp - 0x50]
mov word [edx + eax*2], cx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x44e6d0]
xor ecx, ecx
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x44]
jl 0x42a9d2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x435970]
mov word [edx + eax*2 + 2], 0
cmp dword [ebp - 0xc], 0
je 0x42aa3a
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x76]
je 0x42aa49
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x78]
je 0x42aa49
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0042ddb0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x42afdd
call fcn.0042a104
call fcn.0042d960
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
call fcn.00419fe4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x76]
jne 0x42ac5e
cmp dword [ebp - 0x24], 1
jle 0x42ac5e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax + edx*2 - 2]
cmp ax, word [ebp - 0x76]
jne 0x42ac5e
add dword [ebp - 0xc], 2
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov word [eax + edx*2], 0
mov eax, dword [ebp - 0x24]
inc eax
call fcn.0042dba0
mov dword [ebp - 0x68], eax
push 0x42b0e8
mov eax, dword [ebp - 0xc]
push eax
call sub.msvcrt.dll__wpopen
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x42ab21
push 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0xa
lea ecx, [ebp - 0xd4]
mov edx, 1
mov eax, 0x42b0fc
call fcn.0042ed3c
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
jmp 0x42b030
xor eax, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x68], eax
jmp 0x42abf4
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x70]
cmp eax, 0x200
jge 0x42abab
add dword [ebp - 0x74], 0x200
cmp dword [ebp - 0x68], 0
je 0x42ab5d
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x74]
call fcn.00403f60
jmp 0x42ab68
mov eax, dword [ebp - 0x74]
call fcn.00403f2c
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x42abab
push 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0xa
lea ecx, [ebp - 0xd4]
mov edx, 1
mov eax, 0x42b1e0
call fcn.0042ed3c
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll__pclose
pop ecx
mov dword [ebp - 0x10], 8
jmp 0x42b030
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x64]
push eax
push 0x200
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
push eax
call sub.msvcrt.dll_fgets
add esp, 0xc
test eax, eax
je 0x42ac14
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
call fcn.00406d8c
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_feof
pop ecx
test eax, eax
jne 0x42ac14
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_ferror
pop ecx
test eax, eax
je 0x42ab36
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll__pclose
pop ecx
mov eax, dword [ebp - 0x70]
add eax, 2
mov edx, eax
add edx, edx
lea eax, [ebp - 0x68]
call fcn.00403f60
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
call fcn.004040d0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x42adb7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, word [ebp - 0x78]
jne 0x42acac
cmp dword [ebp - 0x24], 1
jle 0x42acac
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax + edx*2 - 2]
cmp ax, word [ebp - 0x78]
jne 0x42acac
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov word [eax + edx*2 - 2], 0xa
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x24]
add eax, eax
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
jmp 0x42ae30
cmp byte [ebp - 0x79], 0
je 0x42acbf
mov eax, dword [ebp - 0xc]
call fcn.0042f5d8
mov dword [ebp - 0x40], eax
jmp 0x42acc5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
push 0
push 0
push 3
push 0
push 5
push 0x80000000
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42ad1a
push 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0xa
lea ecx, [ebp - 0xd4]
mov edx, 1
mov eax, 0x42b210
call fcn.0042ed3c
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
jmp 0x42b030
push 2
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov eax, dword [ebp - 0x18]
add eax, 2
add eax, eax
call fcn.00403f2c
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x42ad8d
push 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0xa
lea ecx, [ebp - 0xd4]
mov edx, 1
mov eax, 0x42b1e0
call fcn.0042ed3c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0x10], 8
jmp 0x42b030
mov dword [ebp - 0x1c], 0xffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x42ae30
mov eax, dword [0x435bc8]
mov eax, dword [eax]
call fcn.00428524
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x80], 0
setne al
and eax, 0x7f
push eax
mov eax, dword [0x435bc8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add eax, eax
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
je 0x42ae1c
mov eax, dword [ebp - 0x34]
cmp word [eax - 2], 0xa
je 0x42ae28
mov eax, dword [ebp - 0x34]
mov word [eax], 0xa
add dword [ebp - 0x34], 2
mov eax, dword [ebp - 0x34]
mov word [eax], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jae 0x42afc1
call fcn.0042d960
mov ebx, dword [ebp - 0x2c]
mov dx, 0xa
mov eax, ebx
call fcn.00419f74
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x42afc1
cmp ebx, dword [ebp - 0x2c]
jae 0x42ae74
mov eax, dword [ebp - 0x2c]
cmp word [eax - 2], 0xd
jne 0x42ae74
mov eax, dword [ebp - 0x2c]
mov word [eax - 2], 0
mov eax, dword [ebp - 0x2c]
mov word [eax], 0
add dword [ebp - 0x2c], 2
cmp dword [ebp - 0x48], 0
jne 0x42afb2
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jle 0x42aebb
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov edx, dword [0x44e6d0]
xor ecx, ecx
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x50]
dec dword [ebp - 0x84]
jne 0x42ae9f
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x58], eax
jmp 0x42af7f
call fcn.0042d960
jmp 0x42aed4
add ebx, 2
movzx esi, word [ebx]
test si, si
je 0x42aeed
lea eax, [ebp - 0xcc]
mov edx, esi
call fcn.00419f74
test eax, eax
jne 0x42aed1
cmp dword [ebp - 0x50], 0
jne 0x42af00
movzx eax, word [ebx]
cmp ax, word [ebp - 0x3a]
je 0x42af89
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x5c], 0
je 0x42af2c
mov eax, dword [ebp - 0x58]
inc eax
cmp eax, dword [ebp - 0x5c]
jne 0x42af2c
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x58]
mov edx, dword [0x44e6d0]
mov ecx, dword [ebp - 0x30]
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x58]
jmp 0x42af89
add ebx, 2
movzx edi, word [ebx]
test di, di
je 0x42af45
lea eax, [ebp - 0xcc]
mov edx, edi
call fcn.00419f74
test eax, eax
je 0x42af29
mov word [ebx], 0
cmp ebx, dword [ebp - 0x30]
je 0x42af7c
cmp dword [ebp - 0x50], 0x20
jge 0x42af7c
mov ecx, dword [ebp - 0x50]
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x60]
je 0x42af79
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x58]
mov edx, dword [0x44e6d0]
mov ecx, dword [ebp - 0x30]
mov dword [edx + eax*4], ecx
inc dword [ebp - 0x58]
inc dword [ebp - 0x50]
add ebx, 2
cmp word [ebx], 0
jne 0x42aeca
cmp dword [ebp - 0x58], 0
je 0x42afb5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
movzx edx, byte [ebp + 8]
call fcn.0042b454
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
call fcn.0042b8c0
mov dword [ebp - 0x20], eax
mov byte [ebp + 8], 0
jmp 0x42afb5
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jb 0x42ae3c
cmp dword [ebp - 0x38], 0
je 0x42afcf
mov eax, dword [ebp - 0x38]
call fcn.00403f48
mov eax, dword [ebp - 0x24]
add eax, eax
add eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x42aff3
cmp byte [0x43596c], 0
je 0x42aa59
cmp dword [ebp - 0x44], 1
jle 0x42b02a
cmp dword [0x435970], 0
je 0x42b02a
mov eax, dword [0x435970]
cmp word [eax], 0
je 0x42b02a
mov eax, dword [0x435970]
mov edx, dword [ebp - 8]
mov word [eax + edx*2 + 2], 0
mov eax, dword [0x44e6d0]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [eax + edx*4 + 4], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4