Function at 0x402360
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x9e28
call fcn.0041ec40
mov dl, byte [0x4572d0]
push ebx
push ebp
mov dword [esp + 8], ecx
push edi
mov ecx, 0x7e7
xor eax, eax
lea edi, [esp + 0x7e95]
mov byte [esp + 0x7e94], dl
mov byte [esp + 0x1fb4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7e7
xor eax, eax
lea edi, [esp + 0x1fb5]
mov byte [esp + 0x3f54], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7e7
xor eax, eax
lea edi, [esp + 0x3f55]
mov byte [esp + 0x5ef4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7e7
xor eax, eax
lea edi, [esp + 0x5ef5]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x80
push 4
push ebx
stosb byte es:[edi], al
mov eax, dword [esp + 0x9e48]
push 3
push 0x80000000
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4025c3
push esi
lea ecx, [esp + 0x14]
push ebx
lea esi, [esp + edi + 0x1c]
push ecx
push 1
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402585
cmp dword [esp + 0x14], ebx
je 0x402585
cmp byte [esi], 0xa
jne 0x40257f
mov byte [esp + edi + 0x17], bl
mov al, byte [esp + 0x18]
cmp al, 0x5b
jne 0x4024ba
cmp byte [esp + 0x1fb8], bl
je 0x40247c
lea edx, [esp + 0x5ef8]
lea eax, [esp + 0x3f58]
push edx
push eax
push ebx
lea ecx, [esp + 0x7ea4]
push ebx
lea edx, [esp + 0x1fc8]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00401e70
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x7e98], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1fb8], bl
mov byte [esp + 0x3f58], bl
mov byte [esp + 0x5ef8], bl
mov byte [esp + ecx + 0x17], bl
lea edi, [esp + 0x19]
lea edx, [esp + 0x7e98]
jmp 0x40255b
lea ecx, [esp + 0x18]
push str.DialParamsUID
push ecx
call fcn.0041ef80
add esp, 8
test eax, eax
je 0x4024f3
lea edx, [esp + 0x18]
push 0x3d
push edx
call fcn.0041eec0
add esp, 8
cmp eax, ebx
je 0x402578
lea edi, [eax + 1]
lea edx, [esp + 0x1fb8]
jmp 0x40255b
lea ecx, [esp + 0x18]
push str.PhoneNumber
push ecx
call fcn.0041ef80
add esp, 8
test eax, eax
je 0x402528
lea edx, [esp + 0x18]
push 0x3d
push edx
call fcn.0041eec0
add esp, 8
cmp eax, ebx
je 0x402578
lea edi, [eax + 1]
lea edx, [esp + 0x3f58]
jmp 0x40255b
lea ecx, [esp + 0x18]
push str.PreferredDevice
push ecx
call fcn.0041ef80
add esp, 8
test eax, eax
je 0x402578
lea edx, [esp + 0x18]
push 0x3d
push edx
call fcn.0041eec0
add esp, 8
cmp eax, ebx
je 0x402578
lea edi, [eax + 1]
lea edx, [esp + 0x5ef8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
jmp 0x40240d
inc edi
jmp 0x40240d
mov al, byte [esp + 0x1fb8]
pop esi
cmp al, bl
je 0x4025bc
lea ecx, [esp + 0x5ef4]
lea edx, [esp + 0x3f54]
push ecx
push edx
push ebx
lea eax, [esp + 0x7ea0]
push ebx
lea ecx, [esp + 0x1fc4]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00401e70
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
add esp, 0x9e28
ret 4