Function at 0x409090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x281c
call fcn.00424d20
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xeb3c], 0
jne 0x4094be
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x409138
cmp dword [esi + 4], 0
jne 0x409195
mov dword [esi + 0xeb3c], 1
cmp dword [0x44a4ac], 0
jne 0x4090f2
cmp dword [0x44e504], 0
je 0x40938f
lea eax, [ebp - 0x2810]
push eax
lea eax, [ebp - 0x2814]
push eax
call fcn.0040e370
test eax, eax
jle 0x40938f
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0x2814]
cmp eax, 6
jne 0x409358
push dword [ebp - 0x2810]
mov ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
push 0x82
call dword [eax + 0x10]
jmp 0x409374
cmp eax, 1
jne 0x4090dc
mov ecx, dword [esi + 8]
mov eax, dword [0x43a1c0]
imul ecx, ecx, 0x384a0
add eax, 0xfffc7b68
add eax, ecx
mov dword [ebp - 0x280c], eax
cmp dword [eax + 0x18], 0
jne 0x4090d2
lea edi, [eax + 0x38488]
push edi
call edx
mov eax, dword [ebp - 0x280c]
xor ebx, ebx
cmp dword [eax + 0x54], ebx
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jg 0x40918f
jns 0x4090dc
jmp 0x4090d2
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xeb60], 0
jbe 0x4090dc
lea eax, [esi + 0xeb44]
xor ebx, ebx
push eax
mov dword [ebp - 0x280c], ebx
call edx
mov edi, dword [esi + 0xeb60]
test edi, edi
je 0x40925a
mov eax, edi
mov dword [ebp - 0x280c], ebx
test eax, eax
je 0x4091dd
mov eax, dword [esi + 0xeb5c]
mov ebx, dword [eax]
mov dword [ebp - 0x280c], ebx
mov eax, edi
xor ecx, ecx
test edi, edi
je 0x409215
xor edx, edx
cmp ecx, eax
jae 0x4091f2
mov eax, dword [esi + 0xeb5c]
mov edx, dword [eax + ecx*4]
cmp dword [edx + 0x10], 0x84
jne 0x40920d
mov eax, dword [edx + 8]
cmp dword [eax + 4], 0x30
jne 0x40920d
inc ecx
mov eax, edi
cmp ecx, edi
jb 0x4091e3
jmp 0x409215
mov ebx, edx
mov dword [ebp - 0x280c], ebx
xor edi, edi
cmp dword [esi + 0xeb60], edi
jbe 0x40925a
nop
mov eax, dword [esi + 0xeb5c]
cmp dword [eax + edi*4], ebx
lea ecx, [eax + edi*4]
jne 0x409251
mov eax, dword [esi + 0xeb60]
sub eax, edi
lea eax, [eax*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.00414590
add esp, 0xc
dec dword [esi + 0xeb60]
inc edi
cmp edi, dword [esi + 0xeb60]
jb 0x409220
lea eax, [esi + 0xeb44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x4090dc
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x40928a
push dword [ebx + 0xc]
mov ecx, dword [esi + 4]
push dword [ebx + 8]
mov eax, dword [ecx]
push dword [ebx + 0x10]
call dword [eax + 0x10]
jmp 0x4092a3
cmp eax, 1
jne 0x4092b1
push dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
push dword [ebx + 8]
mov ecx, dword [esi + 8]
call fcn.004014e0
add esp, 8
test eax, eax
jns 0x4092b1
mov dword [esi + 0xeb3c], 1
cmp dword [ebx + 0x10], 0x84
jne 0x40933a
mov edi, dword [ebx + 8]
cmp dword [edi + 4], 0x30
jne 0x40933a
lea eax, [esi + 0xab10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0xab2c]
xor ecx, ecx
test ebx, ebx
je 0x409327
cmp ecx, ebx
jae 0x4092fc
mov eax, dword [esi + 0xab28]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x4092fc
mov eax, dword [edx + 0x410]
cmp eax, dword [edi + 0x10]
je 0x409303
inc ecx
cmp ecx, ebx
jb 0x4092e4
jmp 0x409327
mov ecx, dword [edi + 0x450]
add ecx, dword [edi + 0x448]
mov eax, dword [edi + 0x454]
adc eax, dword [edi + 0x44c]
mov dword [edx + 0x420], ecx
mov dword [edx + 0x424], eax
lea eax, [esi + 0xab10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x280c]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40934a
push eax
call fcn.00414cc3
add esp, 4
push ebx
call fcn.00414cc3
add esp, 4
jmp 0x4090dc
cmp eax, 1
jne 0x409382
push dword [ebp - 0x2810]
mov ecx, dword [esi + 8]
push edi
mov edx, 0x82
call fcn.004014e0
add esp, 8
test eax, eax
jns 0x409382
mov dword [esi + 0xeb3c], 1
test edi, edi
je 0x40938f
push edi
call fcn.00414cc3
add esp, 4
cmp dword [0x439088], 0
je 0x409493
push 0
push dword [0x439084]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409493
push eax
lea eax, [ebp - 0x2818]
push eax
push 0x2800
lea eax, [ebp - 0x2808]
push eax
push dword [0x439034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409485
mov ebx, dword [ebp - 0x2818]
test ebx, ebx
jle 0x409483
lea eax, [ebx + 0x18]
test eax, eax
je 0x409493
push eax
call fcn.00414cfb
mov edi, eax
add esp, 4
test edi, edi
je 0x409493
lea eax, [ebx + 0x18]
push eax
push 0
push edi
call fcn.0041e930
add esp, 0xc
lea eax, [ebx + 0x18]
mov dword [edi], eax
push ebx
lea eax, [ebp - 0x2808]
push eax
lea eax, [edi + 0x18]
push eax
mov dword [edi + 4], 4
mov dword [edi + 8], ebx
call fcn.0041bfc0
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp eax, 6
jne 0x409452
push dword [edi]
mov ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
push 0x87
call dword [eax + 0x10]
jmp 0x40946a
cmp eax, 1
jne 0x409478
push dword [edi]
mov ecx, dword [esi + 8]
push edi
mov edx, 0x87
call fcn.004014e0
add esp, 8
test eax, eax
jns 0x409478
mov dword [esi + 0xeb3c], 1
push edi
call fcn.00414cc3
add esp, 4
jmp 0x409493
jns 0x409493
push str.VPN:_Adapter_read_failed_n
push esi
call fcn.00401a80
add esp, 8
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
cmp dword [esi + 0xeb3c], 0
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
je 0x4090c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret