Function at 0x12f04020
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x131c3e68]
sub esp, 0x24
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x12f04297
mov ebp, dword [esp + 0x38]
cmp ebp, 0xffffffff
je 0x12f04297
call fcn.12f03130
mov ecx, eax
call fcn.12f030d0
mov esi, eax
mov dword [esp + 0x1c], esi
call fcn.12e48710
mov ecx, eax
call fcn.12e486b0
mov edi, eax
mov dword [esp + 0x18], edi
call fcn.12e2d760
mov ecx, eax
call fcn.12e2d700
cmp esi, ebx
jne 0x12f04083
cmp edi, ebx
jne 0x12f04083
cmp eax, ebx
je 0x12f04297
push 0x20a
call fcn.12f5c05b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x12f04297
mov ecx, 0x82
xor eax, eax
mov edi, esi
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x104
mov edi, 1
push esi
push ebp
mov dword [esp + 0x24], edi
call fcn.12e394d0
mov ecx, eax
call fcn.12e399e0
test eax, eax
je 0x12f0428e
cmp dword [esp + 0x10], edi
jne 0x12f0428e
push esi
call fcn.12f03c90
add esp, 4
test eax, eax
jne 0x12f0428e
cmp dword [0x13199068], ebx
je 0x12f0411c
push ebx
push esi
call fcn.12f802c0
add esp, 8
push eax
push esi
push str._UDCloseHandle___s__size:_d_
push str.UDMatch
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
push 0x5c
push esi
call fcn.12f5c984
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x12f0428e
push edi
call fcn.12f5c51d
add esp, 4
cmp eax, 1
jbe 0x12f0428e
lea edx, [esp + 0x38]
add edi, 2
push edx
push ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
lea edx, [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x24], ecx
xor eax, eax
push edx
push ecx
mov dword [esp + 0x34], eax
push ecx
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
jne 0x12f0418f
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push edi
push esi
call fcn.12f03130
mov ecx, eax
call fcn.12f028a0
mov ebp, eax
mov eax, dword [0x13199068]
test eax, eax
je 0x12f041cd
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push str._UDCloseHandle__CUDNetFileList__d__d
push str.UDMatch
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
test ebp, ebp
jne 0x12f0428e
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push edi
push esi
call fcn.12e48710
mov ecx, eax
call fcn.12e48720
mov ecx, dword [0x13199068]
mov ebp, eax
xor eax, eax
cmp ecx, eax
je 0x12f04218
mov ecx, dword [esp + 0x18]
push ecx
push ebp
push str._UDCloseHandle__CHttpFileList__d__d
push str.UDMatch
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
xor eax, eax
cmp ebp, eax
jne 0x12f0428e
push 0x348
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.12f5c05b
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x12f0428e
lea edx, [esp + 0x18]
push ebp
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push eax
push edi
push esi
call fcn.12e2d760
mov ecx, eax
call fcn.12e2d300
test eax, eax
je 0x12f04285
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12f04285
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 1
push ebp
push ecx
push edx
call fcn.12e29ea0
add esp, 0x10
push ebp
call fcn.12f5c050
add esp, 4
push esi
call fcn.12f5c050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret