Function at 0x42a3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x474]
sub esp, 0x474
push 0xffffffffffffffff
push 0x481948
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x49e128]
xor eax, ebp
mov dword [ebp + 0x470], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x47c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
push bind
or edi, 0xffffffff
push eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x44], esi
je 0x42a9fd
call dword [0x49ded0]
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0x3ff
lea ecx, [ebp + 0x70]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a9f6
mov edx, dword [ebp - 0x40]
mov eax, 0xf
mov byte [ebp + edx + 0x70], bl
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], bl
mov dword [ebp - 4], ebx
mov ecx, dword [0x49c024]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
mov edx, dword [0x49c024]
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 2
mov ecx, dword [0x49c024]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 3
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x3c], bl
mov byte [ebp - 4], 4
mov edx, dword [0x49c024]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 5
lea eax, [ebp + 0x70]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.00438e10
push 9
mov esi, eax
push str.language
push esi
call fcn.004639d8
add esp, 0x14
test eax, eax
jne 0x42a51e
lea edx, [esi + 9]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a504
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x54]
call fcn.00405600
jmp 0x42a675
push 7
push str.langid
push esi
call fcn.004639d8
add esp, 0xc
test eax, eax
jne 0x42a57d
lea edi, [esi + 7]
cmp edi, ebx
jne 0x42a541
lea ecx, [ebp - 0x10]
jmp 0x42a66f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x42a55f
xor eax, eax
lea ecx, [ebp - 0x10]
jmp 0x42a66f
lea eax, [esi + esi]
call fcn.00461b20
mov edx, dword [ebp - 0x30]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.004040a0
lea ecx, [ebp - 0x10]
jmp 0x42a66f
push 9
push str.codepage
push esi
call fcn.004639d8
add esp, 0xc
test eax, eax
jne 0x42a5a5
add esi, 9
push esi
call fcn.00462e05
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x42a675
push 8
push str.version
push esi
call fcn.004639d8
add esp, 0xc
test eax, eax
jne 0x42a601
lea edi, [esi + 8]
cmp edi, ebx
jne 0x42a5c8
lea ecx, [ebp - 0x18]
jmp 0x42a66f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x42a5e6
xor eax, eax
lea ecx, [ebp - 0x18]
jmp 0x42a66f
lea eax, [esi + esi]
call fcn.00461b20
mov ecx, dword [ebp - 0x30]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.004040a0
lea ecx, [ebp - 0x18]
jmp 0x42a66f
push 7
push str.author
push esi
call fcn.004639d8
add esp, 0xc
test eax, eax
jne 0x42a623
add esi, 7
push esi
lea ecx, [ebp + 0x38]
call fcn.00405ec0
jmp 0x42a675
push 0xb
push str.authorlink
push esi
call fcn.004639d8
add esp, 0xc
test eax, eax
jne 0x42a675
lea edi, [esi + 0xb]
cmp edi, ebx
je 0x42a66c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x42a656
xor eax, eax
jmp 0x42a66c
lea eax, [esi + esi]
call fcn.00461b20
mov edx, dword [ebp - 0x30]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.004040a0
lea ecx, [ebp - 0x24]
push eax
call fcn.00405330
cmp dword [ebp - 0x14], 0xfffffffe
mov ecx, dword [ebp + 0x68]
je 0x42a692
cmp ecx, ebx
je 0x42a692
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x42a692
mov edx, dword [ebp - 0x18]
cmp dword [edx - 8], ebx
jne 0x42a69d
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x42a4dc
mov esi, dword [ebp - 0x14]
cmp esi, 0xfffffffe
mov ebx, 0x10
je 0x42a8fc
xor edi, edi
cmp ecx, edi
je 0x42a8fc
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], edi
je 0x42a8fc
lea ecx, [ebp - 0x60]
call fcn.00426660
mov byte [ebp - 4], 6
mov eax, 0xf
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], edi
mov byte [ebp + 4], 0
mov byte [ebp - 4], 7
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x30], edi
mov byte [ebp + 0x20], 0
mov byte [ebp - 4], 8
cmp esi, 0xffffffff
mov eax, dword [ebp + 0x58]
jne 0x42a736
cmp dword [ebp + 0x6c], ebx
jae 0x42a701
lea eax, [ebp + 0x58]
mov ecx, dword [ebp + 0x68]
push edi
push ecx
push eax
lea edx, [ebp]
push edx
call fcn.00439470
mov ecx, dword [ebp + 0x4c]
add esp, 0x10
cmp ecx, edi
jbe 0x42a76f
cmp dword [ebp + 0x50], ebx
mov eax, dword [ebp + 0x3c]
jae 0x42a725
lea eax, [ebp + 0x3c]
push edi
push ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00439470
add esp, 0x10
jmp 0x42a76f
cmp dword [ebp + 0x6c], ebx
jae 0x42a73e
lea eax, [ebp + 0x58]
mov ecx, dword [ebp + 0x68]
push ecx
push eax
lea edx, [ebp]
push edx
call fcn.00439560
mov ecx, dword [ebp + 0x4c]
add esp, 0xc
cmp ecx, edi
jbe 0x42a76f
cmp dword [ebp + 0x50], ebx
mov eax, dword [ebp + 0x3c]
jae 0x42a761
lea eax, [ebp + 0x3c]
push ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00439560
add esp, 0xc
cmp dword [ebp + 0x18], ebx
mov eax, dword [ebp + 4]
jae 0x42a77a
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405330
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00402640
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x58]
call fcn.00402640
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x60]
call fcn.00402640
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], esi
call fcn.00402640
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402640
cmp dword [ebp + 0x30], edi
jbe 0x42a7db
cmp dword [ebp + 0x34], ebx
mov eax, dword [ebp + 0x20]
jae 0x42a7d2
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.00405330
mov esi, dword [ebp - 0x34]
add esi, 0x30
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0
call fcn.004156b0
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov edi, edi
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [ebp - 0x34], eax
jbe 0x42a810
call fcn.00460856
test edi, edi
je 0x42a818
cmp edi, esi
je 0x42a81d
call fcn.00460856
cmp ebx, dword [ebp - 0x34]
je 0x42a875
test edi, edi
jne 0x42a82b
call fcn.00460856
cmp ebx, dword [edi + 8]
jb 0x42a835
call fcn.00460856
lea ecx, [ebp - 0x10]
push ecx
add ebx, 8
push ebx
call fcn.004262a0
test al, al
lea ecx, [ebp - 0x2c]
jne 0x42a85a
call fcn.004261c0
add dword [ebp - 0x14], 1
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
jmp 0x42a800
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x20], edi
call fcn.0043c690
mov ecx, eax
call fcn.00426770
cmp edi, 0xffffffff
jne 0x42a8a5
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.0042a330
mov eax, dword [esi + 4]
test eax, eax
je 0x42a89f
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
mov edi, 0x10
cmp dword [ebp + 0x34], edi
jb 0x42a8bf
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0046058f
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], bl
mov byte [ebp - 4], 6
cmp dword [ebp + 0x18], edi
jb 0x42a8e4
mov edx, dword [ebp + 4]
push edx
call fcn.0046058f
add esp, 4
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00426450
mov ebx, edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x42a927
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x42a927
push esi
call fcn.00460edd
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp + 0x50], ebx
jb 0x42a93c
mov edx, dword [ebp + 0x3c]
push edx
call fcn.0046058f
add esp, 4
mov dword [ebp + 0x50], 0xf
mov dword [ebp + 0x4c], 0
mov byte [ebp + 0x3c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x49c020]
je 0x42a976
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42a976
push esi
call fcn.00460edd
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x49c020]
je 0x42a99e
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42a99e
push esi
call fcn.00460edd
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
cmp edx, dword [0x49c020]
je 0x42a9c6
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42a9c6
push esi
call fcn.00460edd
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x6c], ebx
jb 0x42a9de
mov eax, dword [ebp + 0x58]
push eax
call fcn.0046058f
add esp, 4
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x44]
mov dword [ebp + 0x6c], 0xf
mov dword [ebp + 0x68], 0
mov byte [ebp + 0x58], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea esp, [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x470]
xor ecx, ebp
call fcn.00460e4b
add ebp, 0x474
mov esp, ebp
pop ebp
ret 4