Function at 0x493ee4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, bind
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
push edi
cmp esi, eax
ja 0x49407f
mov edi, dword [ebp + 0x10]
cmp edi, eax
ja 0x49407f
xor ebx, ebx
test ecx, ecx
je 0x49407f
cmp esi, 1
jbe 0x493f43
cmp byte [esi + edx - 1], bl
jne 0x493f43
dec esi
mov dword [esp + 0x28], esi
mov eax, dword [ecx + 0x100c]
test eax, eax
je 0x49409b
push esi
push edx
xor edx, edx
mov ecx, eax
call fcn.0048e6f9
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
jne 0x494049
lea ecx, [esi + 4]
mov dword [esp + 0x20], ebx
cmp ecx, 0xffffffff
jae 0x493f9f
push 0xfffffffffffffffb
pop eax
sub eax, esi
je 0x493f9f
cmp ecx, 0xffffffef
jae 0x493f9f
push 0x30b
push 0x75bd9c
lea eax, [esi + 0x14]
push 1
push eax
call fcn.005f5ba0
add esp, 0x10
lea ecx, [esi + 4]
jmp 0x493fa1
mov eax, ebx
push ebx
mov edx, ecx
mov ecx, eax
push ebx
call fcn.00487604
push esi
push dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x34], eax
mov edx, dword [eax - 0x10]
call section..text
mov edx, dword [esp + 0x24]
xor ecx, ecx
push esi
call fcn.004a3b56
mov ecx, dword [esp + 0x38]
add esp, 0x14
xor edx, edx
mov dword [esi + ecx], eax
push dword [ecx - 0x10]
push ecx
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x100c]
call fcn.0048e6f9
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x494030
lea ecx, [eax + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [eax + 0x30]
push ebx
call fcn.0044aab1
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x494030
cmp edi, dword [esp + 0x20]
jb 0x494030
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x34]
call fcn.0044aab1
add esp, 0xc
mov ecx, dword [esp + 0x24]
call fcn.004876b9
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x494081
mov eax, dword [esp + 0x10]
test eax, eax
je 0x494093
mov esi, dword [esp + 0x18]
test esi, esi
je 0x49407b
cmp edi, dword [eax + 0x30]
jb 0x49407b
push dword [eax + 0x30]
add eax, 0x34
mov edx, edi
push eax
mov ecx, esi
call section..text
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov ecx, dword [eax + 0x30]
cmp edi, ecx
jbe 0x494076
mov byte [ecx + esi], bl
mov eax, dword [eax + 0x30]
jmp 0x494081
test edi, edi
je 0x494076
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c0db0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x1008]
push esi
push edx
xor edx, edx
call fcn.0048e6f9
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x494143
lea edi, [esi + 4]
cmp edi, 0xffffffff
jae 0x4940e4
push 0xfffffffffffffffb
pop eax
sub eax, esi
je 0x4940e4
cmp edi, 0xffffffef
jae 0x4940e4
push 0x332
push 0x75bdc0
lea eax, [esi + 0x14]
push 1
push eax
call fcn.005f5ba0
add esp, 0x10
jmp 0x4940e6
mov eax, ebx
push ebx
push ebx
mov edx, edi
mov ecx, eax
call fcn.00487604
mov edi, dword [esp + 0x30]
mov esi, eax
push edi
push dword [esp + 0x20]
mov ecx, esi
mov edx, dword [esi - 0x10]
call section..text
push edi
mov edx, esi
xor ecx, ecx
call fcn.004a3b56
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword [edi + esi], eax
xor edx, edx
push dword [esi - 0x10]
mov ecx, dword [ecx + 0x1008]
push esi
call fcn.0048e6f9
pop ecx
pop ecx
mov ecx, esi
mov edi, eax
call fcn.004876b9
xor eax, eax
test edi, edi
je 0x494081
inc eax
jmp 0x494145
mov eax, ebx
mov esi, dword [ebp + 0x10]
cmp dword [esp + 0x18], ebx
je 0x4941e3
cmp esi, dword [edi]
jb 0x4941e3
test eax, eax
jne 0x4941e7
mov eax, dword [esp + 0x1c]
push ebx
push dword [edi + 0x38]
push dword [eax]
call fcn.005f0150
add esp, 0xc
test eax, eax
jne 0x49407f
mov eax, dword [esp + 0x1c]
push dword [eax]
push dword [edi]
push 1
push dword [esp + 0x24]
call fcn.005f8c70
add esp, 0x10
test eax, eax
je 0x49407f
mov edx, dword [edi]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00485b66
lea edx, [esp + 0x2c]
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 4]
jne 0x49407f
inc ecx
cmp ecx, 0xc
jne 0x4941b0
mov ecx, dword [edi]
cmp esi, ecx
jbe 0x4941d0
mov eax, dword [esp + 0x18]
mov byte [ecx + eax], bl
test esi, esi
je 0x4941dc
cmp esi, dword [edi]
jb 0x4942ba
mov ebx, dword [edi]
jmp 0x4942ba
test eax, eax
je 0x4941d0
mov ecx, dword [edi]
cmp ecx, 0xffffffff
jae 0x494215
mov eax, ecx
not eax
test eax, eax
je 0x494215
cmp ecx, 0xffffffef
jae 0x494215
push 0x346
push 0x75bde4
lea eax, [ecx + 0x10]
push 1
push eax
call fcn.005f5ba0
add esp, 0x10
jmp 0x494217
mov eax, ebx
mov edx, dword [edi]
mov ecx, eax
push ebx
push ebx
call fcn.00487604
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x24]
push ebx
push dword [edi + 0x38]
mov dword [esp + 0x20], eax
push dword [esi]
call fcn.005f0150
add esp, 0x14
test eax, eax
jne 0x49407f
push dword [esi]
push dword [edi]
push 1
push dword [esp + 0x1c]
call fcn.005f8c70
add esp, 0x10
test eax, eax
je 0x49407f
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.0044aab1
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x4942c1
call fcn.004876b9
test esi, esi
jne 0x494291
mov eax, dword [esp + 0x14]
jmp 0x494081
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00485b66
lea edx, [esp + 0x2c]
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 4]
jne 0x4942ba
inc ecx
cmp ecx, 0xc
jne 0x4942a7
mov ebx, dword [esp + 0x14]
mov eax, ebx
jmp 0x494081
call fcn.004876b9
jmp 0x49407f