Function at 0x404db0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x411fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov eax, 0x4183cc
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 1
jne 0x404ddf
xor ebp, ebp
jmp 0x404dec
push 0x4183cc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov ebx, dword [esp + 0x28]
push ebp
mov ecx, ebx
call fcn.004052a0
test eax, eax
je 0x404e25
mov edi, dword [ebx]
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x404e1a
mov ecx, ebp
mov esi, 0x4183cc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov dword [eax - 8], ebp
mov ecx, dword [ebx]
mov byte [ecx + ebp], 0
mov esi, dword [esp + 0x24]
push 0
push esi
call fcn.0040966b
add esp, 8
cmp eax, 0xffffffff
jne 0x404e4e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x404e82
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x404fbb
cmp eax, edi
je 0x404fbb
add eax, 0x200
shr eax, 0xa
jne 0x404eaa
mov eax, 1
push eax
push 0x415314
push ebx
call fcn.004012b0
mov eax, dword [ebx]
lea edx, [esp + 0x34]
push eax
push edx
call fcn.00404fe0
add esp, 0x14
mov eax, dword [ebx]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x1c], edi
je 0x404f5d
mov esi, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp esi, edi
mov esi, dword [0x415044]
jge 0x404eef
lea edi, [eax - 0xc]
cmp edi, esi
jne 0x404ef6
mov edi, dword [ecx - 0xc]
test edi, edi
jge 0x404f25
mov esi, dword [ecx - 8]
mov edi, ecx
push esi
mov ecx, ebx
call fcn.004052a0
test eax, eax
je 0x404f5d
mov ecx, dword [ebx]
push esi
lea eax, [esi + 1]
push edi
push eax
push ecx
call fcn.004019f0
mov edx, dword [ebx]
add esp, 0x10
mov dword [edx - 8], esi
mov eax, dword [ebx]
mov byte [eax + esi], 0
jmp 0x404f5d
add eax, 0xfffffff4
cmp eax, esi
je 0x404f51
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404f45
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00409660
add esp, 4
mov ecx, dword [0x415040]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, str._KB
test edx, edx
jne 0x404f6a
xor eax, eax
jmp 0x404f75
push str._KB
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str._KB
push eax
mov ecx, ebx
call fcn.00401b70
mov eax, dword [esp + 0x28]
mov edx, dword [0x415044]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404fbf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404fbf
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00409660
add esp, 4
jmp 0x404fbf
mov dword [esp + 0x10], edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret