Function at 0x43a990
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd1b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push ecx
mov dword [ebp - 0x98], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43ae90
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x68], eax
call fcn.004b9cbf
push dword [ebp - 0x68]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x6c], edi
call fcn.004d1ee0
add esp, 0x10
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push 0
push eax
push dword [ebp - 0x68]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x43aa41
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004b9cf0
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi], 0xd0
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
setne al
mov byte [edx], al
xor al, al
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0xe], al
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], al
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x68], esi
jbe 0x43ae77
mov dl, byte [esi + edi]
mov byte [ebp - 0xd], dl
cmp dl, 0x20
jbe 0x43ae5b
cmp dl, 0x7f
jae 0x43ae5b
cmp dl, 0x3d
je 0x43ae5b
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], edi
cmp ecx, edi
jae 0x43aae0
lea eax, [ecx + 1]
cmp edi, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x43abf2
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x43af86
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x43ab18
mov eax, connect
mov esi, closesocket
push eax
call fcn.00402d30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x43ab79
mov edx, edi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x43ab41
mov eax, connect
mov esi, closesocket
push eax
call fcn.00402d30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x43ab79
lea eax, [edx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x43ab63
push eax
call fcn.00402d30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x43ab79
test eax, eax
je 0x43ab77
push eax
call fcn.004b9a30
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, eax
jmp 0x43ab79
xor edi, edi
cmp dword [ebp - 0x78], 0x10
lea eax, [ecx + 1]
mov dword [ebp - 0x20], esi
lea esi, [ecx + edi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x70], esi
push ecx
jb 0x43abd6
mov esi, dword [ebp - 0x34]
push esi
push edi
call fcn.004d17a0
mov ecx, dword [ebp - 0x70]
add esp, 0xc
mov al, byte [ebp - 0xd]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ecx, dword [ebp - 0x78]
inc ecx
cmp ecx, 0x1000
jb 0x43abca
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x43af8b
mov esi, edx
push ecx
push esi
call fcn.004b9cb1
add esp, 8
jmp 0x43abec
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004d17a0
mov al, byte [ebp - 0xd]
add esp, 0xc
mov byte [esi], al
mov byte [esi + 1], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
mov edi, 0xf
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x1c], 0x2529290b
mov dword [ebp - 0x18], 0x3e243f
movzx eax, byte [ebp + ecx - 0x1c]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 7
jb 0x43ac34
lea edx, [ebp - 0x1c]
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x43ac50
sub edx, ecx
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
push eax
push 0
call fcn.00464d90
add esp, 0xc
test eax, eax
je 0x43adc3
mov dword [ebp - 0x64], 0x791a051a
xor ecx, ecx
mov dword [ebp - 0x60], 0x2529290b
mov dword [ebp - 0x5c], 0x3e243f
movzx eax, byte [ebp + ecx - 0x64]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x64], al
inc ecx
cmp ecx, 0xb
jb 0x43ac95
lea edx, [ebp - 0x64]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x43acb0
sub edx, ecx
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
push eax
push 0
call fcn.00464d90
add esp, 0xc
test eax, eax
je 0x43adc3
cmp byte [ebp - 0xe], 0
je 0x43ae07
mov dword [ebp - 0x3d], 0x39392b1a
xor ecx, ecx
mov dword [ebp - 0x39], 0x2e38253d
mov byte [ebp - 0x35], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x3d]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x3d], al
inc ecx
cmp ecx, 8
jb 0x43ad00
lea edx, [ebp - 0x3d]
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x43ad20
sub edx, ecx
lea eax, [ebp - 0x3d]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
push eax
push 0
call fcn.00464d90
add esp, 0xc
test eax, eax
je 0x43ae9f
mov dword [ebp - 0x4d], 0x791a051a
xor ecx, ecx
mov dword [ebp - 0x49], 0x39392b1a
mov dword [ebp - 0x45], 0x2e38253d
mov byte [ebp - 0x41], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x4d]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x4d], al
inc ecx
cmp ecx, 0xc
jb 0x43ad70
lea esi, [ebp - 0x4d]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x43ad90
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x4d]
sub esi, ecx
cmp dword [ebp - 0x20], 0x10
push esi
push eax
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push 0
call fcn.00464d90
add esp, 0xc
test eax, eax
je 0x43ae9f
mov esi, dword [ebp - 0x14]
jmp 0x43ae07
mov eax, dword [ebp + 8]
add esi, 9
cmp byte [eax], 0
jne 0x43add4
mov esi, dword [ebp - 0x14]
add esi, 2
mov eax, dword [ebp - 0x6c]
mov al, byte [esi + eax]
cmp al, 0x20
jbe 0x43ae03
nop
cmp al, 0x7f
jae 0x43ae00
mov byte [ebp - 0x74], al
lea ecx, [ebp - 0x90]
push dword [ebp - 0x74]
call fcn.00402910
mov eax, dword [ebp - 0x6c]
inc esi
mov al, byte [esi + eax]
cmp al, 0x20
ja 0x43ade0
mov edi, dword [ebp - 0x7c]
mov byte [ebp - 0xe], 1
mov byte [ebp - 4], 0
cmp edi, 0x10
jb 0x43ae41
mov edx, dword [ebp - 0x90]
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x43ae37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43af8b
push ecx
push edx
call fcn.004b9cb1
add esp, 8
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
jmp 0x43ae6a
push 0
push 0x51959c
lea ecx, [ebp - 0x34]
call fcn.0045f110
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x68]
jb 0x43aa92
push edi
call fcn.004b9cf0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402890
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp byte [edx], 0
lea eax, [ecx + 9]
jne 0x43aeb0
lea eax, [ecx + 2]
xor edx, edx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], edx
mov ecx, 0xf
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x58], dl
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x6c]
lea esi, [eax + edi]
mov al, byte [esi]
cmp al, 0x20
jbe 0x43af05
cmp al, 0x7f
jae 0x43aeff
mov byte [ebp - 0x74], al
lea ecx, [ebp - 0x58]
push dword [ebp - 0x74]
call fcn.00402910
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x43aee5
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x98]
lea eax, [ebp - 0x58]
cmp esi, eax
je 0x43af25
cmp ecx, 0x10
mov ecx, esi
push edx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0045f110
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x43af56
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43af4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43af8b
push ecx
push edx
call fcn.004b9cb1
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
jmp 0x43ae77
call fcn.00402210
call fcn.004d51a0
int3