Function at 0x403f96
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593a16
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5fedec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0xff
push 0
push eax
call fcn.00570bf0
mov eax, dword [esi + 0x98]
add esp, 0xc
dec eax
cmp eax, 0xd
ja case.0x403f59.3
movzx eax, byte [eax + 0x4041e8]
jmp dword [eax*4 + 0x4041d4]
push 0
lea eax, [ebp - 0x12c]
push eax
push 0xa
push str.ATCXXCID_r
jmp 0x403fb8
push 0
lea eax, [ebp - 0x12c]
push eax
push 0xa
push str.ATICCID__r
jmp 0x403fb8
push 0
lea eax, [ebp - 0x12c]
push eax
push 9
push str.ATICCID_r
jmp 0x403fb8
push 0
lea eax, [ebp - 0x12c]
push eax
push 0xa
push str.ATCICCID_r
jmp 0x403fb8
push 0
lea eax, [ebp - 0x12c]
push eax
push 8
push str.ATCCID_r
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xff
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00570bf0
add esp, 0xc
lea eax, [ebp - 0x12c]
push 0
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x110]
push str.ERROR
push eax
call fcn.0056ffc0
add esp, 8
test eax, eax
je 0x404012
xor al, al
jmp 0x4041b9
lea eax, [ebp - 0x110]
push str.CCID
push eax
call fcn.0056ffc0
add esp, 8
test eax, eax
jne 0x404042
lea eax, [ebp - 0x110]
push str.CXXCID
push eax
call fcn.0056ffc0
add esp, 8
test eax, eax
je 0x40400b
lea eax, [ebp - 0x110]
push 0x3a
push eax
call fcn.0056fe90
add esp, 8
mov edx, eax
xor ecx, ecx
cmp byte [edx + ecx], 0xd
je 0x404096
cmp byte [edx + ecx + 1], 0xd
je 0x404095
cmp byte [edx + ecx + 2], 0xd
je 0x404090
cmp byte [edx + ecx + 3], 0xd
je 0x40408b
cmp byte [edx + ecx + 4], 0xd
je 0x404086
add ecx, 5
cmp ecx, 0xff
jl 0x404057
jmp 0x404096
add ecx, 4
jmp 0x404096
add ecx, 3
jmp 0x404096
add ecx, 2
jmp 0x404096
inc ecx
mov byte [edx + ecx], 0
cmp ecx, 1
jle 0x4040a0
inc edx
cmp byte [edx], 0
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
jne 0x4040c4
xor ecx, ecx
jmp 0x4040d9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4040d0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.00406e30
add esi, 0x20
lea eax, [ebp - 0x128]
cmp esi, eax
je 0x404167
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x40413c
mov ecx, dword [esi]
inc eax
cmp eax, 0x1000
jb 0x404133
test cl, 0x1f
je 0x40410f
call fcn.00573111
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40411b
call fcn.00573111
sub ecx, eax
cmp ecx, 4
jae 0x404127
call fcn.00573111
cmp ecx, 0x23
jbe 0x404131
call fcn.00573111
mov ecx, eax
push ecx
call fcn.0043a6c3
add esp, 4
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x404154
mov eax, dword [esi]
jmp 0x404156
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x128]
push eax
call fcn.004065b0
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x4041b7
mov ecx, dword [ebp - 0x128]
inc eax
cmp eax, 0x1000
jb 0x4041ae
test cl, 0x1f
je 0x40418a
call fcn.00573111
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x404196
call fcn.00573111
sub ecx, eax
cmp ecx, 4
jae 0x4041a2
call fcn.00573111
cmp ecx, 0x23
jbe 0x4041ac
call fcn.00573111
mov ecx, eax
push ecx
call fcn.0043a6c3
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056b237
mov esp, ebp
pop ebp
ret