Function at 0x443170
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a6580
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor ebx, ebx
push 0xc
mov ebp, ecx
mov esi, 0xf
push str._silkcfg.dat
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00406230
mov eax, 0x4e30f8
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4431e0
sub eax, edx
push eax
push 0x4e30f8
lea ecx, [esp + 0x24]
call fcn.00406230
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x88], 1
call fcn.004430c0
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0x10
jb 0x443233
add eax, 1
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00406140
add esp, 8
mov eax, dword [esp + 0x50]
cmp eax, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x443259
mov ecx, dword [esp + 0x3c]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x443268
lea eax, [esp + 0x58]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4432a9
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
jb 0x4433d4
mov edx, dword [esp + 0x58]
add eax, 1
push eax
push edx
call fcn.00406140
add esp, 8
jmp 0x4433d4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4432db
push ebx
lea edx, [esp + 0x18]
push edx
push 0x10
add ebp, 0x1ac
jmp 0x44339b
cmp eax, 4
jae 0x4433c4
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [ebp + 0x1ac]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [ebp + 0x1b0]
push eax
push esi
call edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [ebp + 0x1b4]
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [ebp + 0x1b8]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [ebp + 0x1b9]
push eax
push esi
call edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [ebp + 0x1ba]
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [ebp + 0x1bb]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [ebp + 0x1bc]
push eax
push esi
call edi
cmp dword [esp + 0x18], 3
jne 0x44339f
push ebx
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [ebp + 0x1bd]
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
add ebp, 0x1be
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
jb 0x4433c0
mov ecx, dword [esp + 0x58]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
mov al, 1
jmp 0x4433d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
call fcn.00406db0
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x6c
ret