Function at 0x1501b970
Capabilities:
Get file size

Disassembly:
sub esp, 0x3c
push esi
lea eax, [esp + 0x34]
push eax
xor esi, esi
push esi
push str._attributes_
push ecx
mov dword [esp + 0x48], esi
call sym.Storm.dll_Ordinal_268
test eax, eax
je 0x1501bed8
push ebx
push ebp
push edi
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x40]
cmp dword [ebx + 0x110], 0xffffffff
push 0x1504c420
je 0x1501b9cf
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0x110]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov dword [esp + 0x34], ebp
jmp 0x1501b9e4
mov eax, dword [ebx + 0x118]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x34], esi
mov ebp, esi
push 0
push 0x583
push str..SFile.cpp
push ebp
call sym.Storm.dll_Ordinal_401
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], edi
jne 0x1501ba23
push 0x57
call sym.Storm.dll_Ordinal_465
push ebx
call sym.Storm.dll_Ordinal_253
mov eax, dword [esp + 0x44]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x3c
ret 8
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebp, ebp
jne 0x1501ba3f
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1501ba73
cmp dword [ebx + 0x110], 0xffffffff
je 0x1501baf4
push 0
push ebp
push edi
or edi, 0xffffffff
mov eax, ebx
call fcn.15017810
push 0x1504c420
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1501beae
mov edi, dword [esp + 0x14]
mov edx, 8
cmp ebp, edx
jb 0x1501beb2
mov ecx, dword [edi + 4]
mov esi, ecx
and esi, 1
lea eax, [edi + 8]
je 0x1501ba98
mov edx, dword [esp + 0x54]
lea edx, [edx*4 + 8]
mov edi, ecx
and edi, 2
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x54]
je 0x1501baaa
lea edx, [edx + edi*8]
and ecx, 4
mov dword [esp + 0x54], ecx
je 0x1501baba
mov ecx, edi
shl ecx, 4
add edx, ecx
cmp ebp, edx
jne 0x1501beae
test esi, esi
je 0x1501be46
test edi, edi
jbe 0x1501be46
mov ebp, dword [esp + 0x50]
lea edx, [ebp + 0x18]
mov esi, edi
jmp 0x1501bae0
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 0x2c
add eax, 4
sub esi, 1
jne 0x1501bae0
jmp 0x1501be4a
mov ecx, dword [ebx + 0x138]
test ecx, ecx
je 0x1501bb8d
mov eax, dword [ebx + 0x13c]
mov esi, dword [ebx + 0x140]
cmp eax, esi
jae 0x1501bb8d
sub esi, eax
cmp ebp, esi
jae 0x1501bb1a
mov esi, ebp
push esi
add eax, ecx
push eax
push edi
call sub.MSVCR80.dll_memcpy
add dword [ebx + 0x120], esi
add dword [ebx + 0x13c], esi
mov eax, ebp
add esp, 0xc
lea ecx, [esi + edi]
sub eax, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
jne 0x1501bb8d
cmp dword [ebx + 0x14c], 0
je 0x1501bb7d
cmp dword [ebx + 0x150], 4
jne 0x1501bb7d
mov edx, dword [ebx + 0x118]
mov eax, dword [ebx + 0x148]
cmp eax, dword [edx + 0x18]
je 0x1501bb7d
push 1
push 0
push 0
push 0xfffffffffffffffc
lea ecx, [ebx + 8]
push ecx
push 0x85100083
call sym.Storm.dll_Ordinal_461
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1501ba73
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x120]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x114]
mov eax, dword [edx + 0x124]
lea edi, [eax - 1]
and edi, ecx
sub eax, edi
cmp eax, 0x1000
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], ecx
jbe 0x1501bbc8
mov eax, 0x1000
jmp 0x1501bbd5
mov eax, dword [edx + 0x124]
lea edi, [eax - 1]
and edi, ecx
sub eax, edi
mov edi, dword [esp + 0x20]
cmp edi, eax
jae 0x1501bbed
mov esi, dword [ebx + 0x138]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov esi, eax
test esi, esi
jne 0x1501bc01
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1501ba6f
mov eax, dword [0x150495fc]
xor ebp, ebp
cmp dword [ebx + 0x110], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], eax
jne 0x1501bd04
cmp dword [edx + 0x110], ebp
jne 0x1501bd04
mov edx, dword [esp + 0x18]
push esi
mov eax, ecx
push edx
mov ecx, ebx
call fcn.15018340
cmp dword [ebx + 0x14c], ebp
mov dword [esp + 0x10], eax
je 0x1501bc7a
cmp dword [ebx + 0x150], 2
jne 0x1501bc7a
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x154]
cmp ecx, dword [eax + 8]
jne 0x1501bc7a
push 4
lea edx, [ebx + 0x148]
push edx
xor edx, edx
xor ecx, ecx
call section..text
mov dword [ebx + 0x150], 4
mov ebp, dword [esp + 0x10]
cmp edi, ebp
mov esi, edi
jb 0x1501bc86
mov esi, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x1501bca9
push esi
push eax
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x13c], esi
mov dword [ebx + 0x140], ebp
add dword [ebx + 0x120], esi
cmp esi, edi
jne 0x1501be32
cmp dword [ebx + 0x14c], 0
je 0x1501bcf0
cmp dword [ebx + 0x150], 4
jne 0x1501bcf0
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x148]
cmp ecx, dword [eax + 0x18]
je 0x1501bcf0
push 1
push 0
push 0
push 0xfffffffffffffffc
lea edx, [ebx + 8]
push edx
push 0x85100083
call sym.Storm.dll_Ordinal_461
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x34]
jmp 0x1501ba6f
call fcn.1501af30
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x1c]
xor edx, edx
lea eax, [ecx + eax - 1]
div ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], edi
test eax, eax
mov dword [esp + 0x3c], eax
jbe 0x1501bdea
mov edi, dword [esp + 0x18]
xor ebp, ebp
sub edi, dword [esp + 0x38]
mov dword [esp + 0x48], edi
jmp 0x1501bd58
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
xor ecx, ecx
add eax, 0xffffffff
cmp dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
sete cl
sub eax, ebp
mov esi, ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
mov dword [esp + 0x24], ecx
jb 0x1501bd7c
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x38]
xor ecx, ecx
push 0
push esi
test esi, esi
sete cl
lea eax, [edx + ebp]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x4c]
add edi, eax
push ecx
mov ecx, dword [esp + 0x28]
push 1
push 0x7fffffff
push edx
push 0
push 0
push 0
push ecx
push edi
push eax
mov edi, ebx
call fcn.15019f50
test esi, esi
mov edi, eax
jne 0x1501bdc9
mov edx, dword [esp + 0x24]
add dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
add ebp, dword [esp + 0x2c]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
jb 0x1501bd50
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, dword [edi + 0x3c]
mov ecx, edi
call fcn.1501a720
push 0
push 0xffffffffffffffff
push 0x15041b7c
push edi
call sym.Storm.dll_Ordinal_403
mov edi, dword [esp + 0x20]
jmp 0x1501bc7e
push 0x26
call sym.Storm.dll_Ordinal_465
push 0x1504c420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1501beae
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0x48], 0
je 0x1501be75
test edi, edi
jbe 0x1501be75
lea edx, [ebp + 0x10]
mov esi, edi
lea ebx, [ebx]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
add edx, 0x2c
add eax, 8
sub esi, 1
jne 0x1501be60
cmp dword [esp + 0x54], 0
je 0x1501bea6
test edi, edi
jbe 0x1501bea6
lea ecx, [ebp + 0x24]
mov edx, edi
mov esi, dword [eax]
mov dword [ecx - 8], esi
mov esi, dword [eax + 4]
mov dword [ecx - 4], esi
mov esi, dword [eax + 8]
mov dword [ecx], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 4], esi
add ecx, 0x2c
add eax, 0x10
sub edx, 1
jne 0x1501be85
mov dword [esp + 0x44], 1
mov edi, dword [esp + 0x14]
push 0
push 0x5aa
push str..SFile.cpp
push edi
call sym.Storm.dll_Ordinal_403
push ebx
call sym.Storm.dll_Ordinal_253
mov eax, dword [esp + 0x44]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x3c
ret 8
mov eax, esi
pop esi
add esp, 0x3c
ret 8