Function at 0x43ad80
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4b4aec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
mov ax, word [0x4bda9c]
mov dl, byte [0x4bda9e]
push ebx
push ebp
push esi
lea esi, [ecx + 0x71120]
push edi
mov word [esp + 0x10], ax
mov byte [esp + 0x12], dl
mov dword [esp + 0x18], esi
mov edi, 0x12c
mov ecx, dword [esi]
test ecx, ecx
je 0x43adcf
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
dec edi
jne 0x43adc3
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x98]
lea edx, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ecx, 0x1e
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, 0x4bda90
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4bd888
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4bd884
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4bd884
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4bd87c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x34]
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp esi, 0xffffffff
mov ebx, eax
je 0x43af2c
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x20]
push 0x4bd878
push ecx
call fcn.004a7d19
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x43b039
lea esi, [ebx + 1]
push esi
call fcn.004a71d4
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push ebp
and ecx, 3
push 1
push ebx
push edx
rep stosb byte es:[edi], al
mov dword [esp + 0x28], edx
call fcn.004a7d2c
push ebp
call fcn.004a7b32
push 0x114
call fcn.004a71d4
add esp, 0x1c
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x118], 0
je 0x43afae
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, eax
call fcn.004a60f0
mov ebp, eax
jmp 0x43afb0
xor ebp, ebp
mov ecx, ebp
mov dword [esp + 0x118], 0xffffffff
call fcn.004a6150
mov esi, eax
test esi, esi
je 0x43b01f
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
push 0x18
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call edi
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x118], 1
je 0x43b000
push 0
push esi
push 0
mov ecx, eax
call fcn.004a5770
jmp 0x43b002
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x118], 0xffffffff
mov dword [ebx], eax
call fcn.004a6150
mov esi, eax
add ebx, 4
test esi, esi
jne 0x43afd2
test ebp, ebp
je 0x43b02c
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov eax, dword [esp + 0x14]
push eax
call fcn.004a71c9
add esp, 4
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10c
ret