Function at 0x5db730
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x228]
xor esi, esi
lea edi, [esp + 0x14]
mov dword [ebp], 0x7145a0
mov dword [esp + 0x28], 0x6dbbf0
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], esi
call fcn.005f7f70
test byte [ebp + 0xd], 1
mov ecx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
jne 0x5db8d3
xor edi, edi
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x18], edx
jae 0x5db8d3
mov eax, dword [ebp + 0x224]
lea esi, [edi + eax + 0x208]
call fcn.005ebb80
mov eax, dword [ebp + 0x224]
push 3
push 1
add eax, edi
push SysReAllocStringLen
push eax
mov eax, 0xbb8
call fcn.004abf70
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
je 0x5db88f
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
test eax, eax
jne 0x5db7ed
xor edi, edi
mov dword [esp + 0x44], esi
jmp 0x5db7f9
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x44], edx
push 0xc
call fcn.0069e704
add esp, 4
cmp eax, esi
jne 0x5db80e
call fcn.004b05b0
jmp 0x5db818
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov esi, eax
mov eax, dword [esi]
push eax
call fcn.0069c8fa
add esp, 4
cmp edi, 0xf4240
jbe 0x5db83a
call fcn.004c90f0
shr eax, 1
cmp eax, edi
jae 0x5db83a
xor eax, eax
jmp 0x5db848
push 0x734220
push edi
call fcn.0069c1fd
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x5db8aa
push edi
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esi + 4], edi
call fcn.004adf70
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x5db8af
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 8]
mov dword [ecx], esi
push ebx
mov dword [eax], 0
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
add dword [esp + 0x18], 1
add edi, 0x20c
test byte [ebp + 0xd], 1
mov dword [esp + 0x24], edi
je 0x5db788
jmp 0x5db8d3
mov edx, eax
push edx
jmp 0x5db8bb
cmp eax, 2
jne 0x5db8b8
or byte [ebp + 0xd], 1
mov eax, dword [esi]
push eax
call fcn.0069c8fa
add esp, 4
push esi
call fcn.0069d0cc
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp edi, ebx
jbe 0x5db8fe
xor esi, esi
nop
mov ecx, dword [ebp + 0x224]
add ecx, esi
push ecx
mov eax, 0xbb8
call fcn.004abff0
add esi, 0x20c
sub edi, 1
jne 0x5db8e0
cmp dword [esp + 0x20], ebx
jne 0x5db9a9
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x1c]
mov dword [esp + 0x45c], eax
movzx eax, word [ecx]
mov dword [esp + 0x458], edx
xor edx, edx
add ecx, 2
cmp ax, bx
mov word [esp + 0x460], bx
je 0x5db950
cmp edx, 0x103
jae 0x5db950
mov word [esp + edx*2 + 0x48], ax
movzx eax, word [ecx]
add edx, 1
add ecx, 2
cmp ax, bx
jne 0x5db935
mov word [esp + edx*2 + 0x48], bx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
mov word [esp + 0x25c], bx
call fcn.005db370
cmp dword [eax], 2
jne 0x5db9a9
mov eax, dword [esp + 0x14]
or byte [ebp + 0xd], 1
cmp eax, ebx
je 0x5db9d6
mov ecx, dword [eax + 8]
mov esi, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esi]
push edx
call fcn.0069c8fa
add esp, 4
push esi
call fcn.0069d0cc
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x5db982
jmp 0x5db9d6
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5db9d6
mov esi, eax
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [esi]
push ecx
call fcn.0069c8fa
add esp, 4
push esi
call fcn.0069d0cc
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x5db9b1
mov ecx, dword [ebp + 0x224]
cmp ecx, ebx
je 0x5dba4d
mov edi, dword [ecx - 4]
lea edx, [ecx - 4]
mov eax, edi
imul eax, eax, 0x20c
add eax, ecx
sub edi, 1
mov dword [esp + 0x1c], edx
js 0x5dba42
lea esi, [eax + 0x208]
mov ebx, 0xffff
jmp 0x5dba10
mov eax, dword [esi - 0x20c]
add word [eax + 0x12], bx
mov ecx, dword [esi - 0x20c]
sub esi, 0x20c
cmp word [ecx + 0x12], 0
jne 0x5dba39
test ecx, ecx
je 0x5dba39
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
sub edi, 1
jns 0x5dba10
mov edx, dword [esp + 0x1c]
push edx
call fcn.0069c8fa
add esp, 4
xor ebx, ebx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x5dbaa7
cmp dword [esi + 0x1676], ebx
je 0x5dba8f
lea esp, [esp]
mov edi, dword [esi + 0x1676]
cmp edi, ebx
mov ecx, dword [edi + 8]
mov dword [esi + 0x1676], ecx
je 0x5dba87
mov edx, dword [edi]
push edx
call fcn.0069c8fa
add esp, 4
push edi
call fcn.0069d0cc
add esp, 4
cmp dword [esi + 0x1676], ebx
jne 0x5dba60
mov eax, dword [esi + 0x166a]
push eax
call fcn.0069c8fa
add esp, 4
push esi
call fcn.0069d0cc
add esp, 4
pop edi
mov dword [ebp], 0x6dc414
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret