Function at 0x100496e1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], 0xffffffff
inc esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov edi, ecx
mov dword [ebp - 8], ebx
jmp 0x1004970e
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x3c], 0x40d7f825
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x10049700
mov dword [ebp - 8], ebx
jmp 0x10049723
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x20], esi
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x10049719
mov dword [ebp - 8], 3
cmp dword [ebp - 8], ebx
jl 0x10049819
mov dword [ebp - 0x10], 0xfffffffa
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], ebx
jmp 0x10049760
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x2c], ebx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x10049756
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0x3c], ebx
je 0x100497ad
mov dword [ebp - 0xc], 0xfffffffd
mov ecx, dword [ebp - 0xc]
neg ecx
mov dword [ebp - 0x10], 0x3245
sbb ecx, ecx
neg ecx
cmp dword [ebp - 0x10], ebx
je 0x1004978e
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 0xc]
cmp ecx, eax
sete dl
mov dword [ebp - 0x10], edx
jmp 0x10049801
mov dword [ebp - 0x10], 0x2d621ec2
mov dword [ebp - 0x10], 0x1eca6c84
mov dword [ebp - 0x10], 0xa83a0f0f
mov dword [ebp - 0x10], 0x86992f1e
mov dword [ebp - 0x10], 0x9d20578c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], 0xd91f06e8
mov dword [ebp - 0x10], 6
mov dword [ebp - 0x10], 0x9f2e0723
inc dword [ebp - 0x20]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10049801
push ebx
push ebx
push 0x3ad
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10049810
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
dec dword [ebp - 8]
jns 0x10049739
push esi
push 0x637a
push edi
call fcn.100444b6
mov dword [ebp - 8], 0x15fdc8df
add esp, 0xc
mov dword [ebp - 0x10], 0x2206dd2c
mov dword [ebp - 0xc], ebx
jmp 0x10049849
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x18], 0xfffffff9
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1004983b
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1004985d
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov eax, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, eax
mov eax, 0xbe4438be
setne dl
add edx, dword [ebp - 0x14]
cmp eax, edx
mov eax, dword [ebp - 0x14]
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setge cl
cmp ecx, dword [ebp - 8]
jge 0x10049892
cmp dword [ebp - 0x18], ebx
jne 0x10049894
mov esi, ebx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp esi, eax
push edi
setle cl
mov dword [ebp - 0x10], ecx
call fcn.1002f5c9
mov dword [ebp - 0x10], 0xfffffffb
mov esi, eax
mov byte [ebp - 1], bl
pop ecx
cmp byte [ebp - 1], bl
je 0x100498c1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x100498d4
push 0xb54
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret