Function at 0x4575d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a707d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
shr eax, 0xa
mov dword [ebp - 0x50], ecx
test al, 1
je 0x457657
cmp dword [ebx + 0x158], 0xe0000024
jne 0x457657
cmp byte [esi + 4], 0
je 0x457657
cmp dword [esi + 0x18], 0
je 0x457657
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 1
push 0xe0000024
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x50]
cmp eax, 0x4d5
jne 0x457657
mov dword [ebx + 0x158], 0
mov edi, dword [ebx + 0x158]
test edi, edi
jne 0x457b72
mov eax, dword [ecx]
lea edi, [ebx + 0x160]
push dword [ebx + 0x80]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x50]
lea edx, [ebx + 0xa0]
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x48], edi
mov dword [ebx + 0x158], edi
test edi, edi
jne 0x457a5a
mov edi, dword [ebx + 0x168]
call fcn.00404130
test eax, eax
je 0x457b92
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x4c]
mov eax, dword [edi + 0xe0]
lea ecx, [ebx + 4]
push edx
push ecx
push 1
mov eax, dword [eax + 0x28]
lea ecx, [edi + 0xe0]
call eax
test al, al
je 0x457703
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x457b92
push eax
push dword [ebx + 0x160]
call fcn.004806e3
add esp, 8
test eax, eax
jne 0x457703
jmp 0x45771f
mov eax, dword [edi + 0xe0]
lea ecx, [ebx + 0x160]
push ecx
lea ecx, [ebx + 4]
push ecx
push 1
lea ecx, [edi + 0xe0]
call dword [eax + 0x24]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457741
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x98]
cmp dword [eax - 0xc], 0
je 0x45793d
cmp byte [esi + 4], 0
je 0x457794
cmp byte [esi + 5], 0
je 0x457794
cmp dword [esi + 0x18], 0
je 0x457794
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ecx]
push 0
push 0x69
call dword [eax + 0xc]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 5
xor eax, eax
mov edx, dword [ebx + 0x160]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4577f6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004035b0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402640
mov edi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00403b70
test edi, edi
je 0x457842
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402e40
jmp 0x457892
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402860
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x45785a
mov eax, dword [eax]
test eax, eax
je 0x457b92
push eax
push dword [ebx + 0x98]
call fcn.004806e3
add esp, 8
mov edi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402e40
test edi, edi
je 0x45790d
mov edi, 0xe0000030
mov ecx, ebx
mov dword [ebp - 0x48], edi
mov dword [ebx + 0x158], edi
call fcn.0045ad50
mov ecx, dword [ebx + 0x168]
lea edx, [ebx + 4]
add ecx, 0xe0
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [esi + 4], 0
je 0x457900
cmp dword [esi + 0x18], 0
je 0x457900
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
push edi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0x4d5
je 0x457907
cmp eax, 0xe0000008
jne 0x457902
mov dword [ebx + 0x158], 0xe0000008
mov eax, 0xe0000008
jmp 0x457b74
xor eax, eax
cmp eax, 0x4d5
sete byte [ebp - 0x41]
jmp 0x457910
mov edi, dword [ebp - 0x48]
cmp byte [esi + 4], 0
je 0x457a48
cmp byte [esi + 5], 0
je 0x457a48
cmp dword [esi + 0x18], 0
je 0x457a48
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push edi
push 0x69
jmp 0x457a40
mov eax, dword [ebx + 0x9c]
cmp dword [eax - 0xc], 0
je 0x457a7a
cmp byte [esi + 4], 0
mov edx, eax
je 0x457998
cmp byte [esi + 5], 0
je 0x457998
cmp dword [esi + 0x18], 0
je 0x457998
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ecx]
push 0
push 0x66
call dword [eax + 0xc]
mov edx, dword [ebx + 0x9c]
push ecx
mov ecx, dword [ebx + 0x160]
call fcn.0040d060
add esp, 4
test al, al
jne 0x457a21
mov edi, 0xe0000022
mov ecx, ebx
mov dword [ebp - 0x48], edi
mov dword [ebx + 0x158], edi
call fcn.0045ad50
mov ecx, dword [ebx + 0x168]
lea edx, [ebx + 4]
add ecx, 0xe0
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [esi + 4], 0
je 0x457a14
cmp dword [esi + 0x18], 0
je 0x457a14
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
push edi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0x4d5
je 0x457a1b
cmp eax, 0xe0000008
je 0x4578ec
cmp eax, 0x4d5
sete byte [ebp - 0x41]
jmp 0x457a24
xor eax, eax
cmp eax, 0x4d5
sete byte [ebp - 0x41]
jmp 0x457a24
mov edi, dword [ebp - 0x48]
cmp byte [esi + 4], 0
je 0x457a48
cmp byte [esi + 5], 0
je 0x457a48
cmp dword [esi + 0x18], 0
je 0x457a48
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push edi
push 0x66
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [ebp - 0x41], 0
je 0x457b6f
mov ecx, dword [ebp - 0x50]
jmp 0x457665
cmp edi, 0xe0000008
je 0x4578f6
cmp edi, 0xe000000f
jne 0x457b47
mov ecx, dword [ebp - 0x50]
jmp 0x457665
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebx + 0x160]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x54], 0x4ba518
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 0xa
cmp edi, 0xffffffff
jne 0x457ac5
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x54], 0x4ba518
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x457aed
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x54], 0x4ba518
test edi, edi
je 0x457af4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
cmp eax, dword [ebx + 0x80]
je 0x457b6f
mov edi, 0xe0000023
mov ecx, ebx
mov dword [ebx + 0x158], edi
call fcn.0045ad50
mov ecx, dword [ebx + 0x168]
lea edx, [ebx + 4]
add ecx, 0xe0
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [esi + 4], 0
je 0x457b72
cmp dword [esi + 0x18], 0
je 0x457b72
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
push edi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x457b72
cmp edi, 0xe0000023
jne 0x457b72
mov ecx, ebx
call fcn.0045ad50
mov ecx, dword [ebx + 0x168]
lea eax, [ebx + 4]
add ecx, 0xe0
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x40]
jmp 0x457b72
mov edi, dword [ebp - 0x48]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477280
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004022e0
int3