Function at 0x40de8d
Capabilities:
Get file size

Disassembly:
mov eax, 0x42932d
call fcn.0041bd3c
sub esp, 0x14c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x20], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x164], ebx
lea edi, [esi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov byte [esp + 0x164], 1
or dword [esi + 0x34], 0xffffffff
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
call fcn.0040f0bc
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp eax, 2
jae 0x40df06
push str.902902
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40df06
push eax
call ebp
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], 0
je 0x40df23
push ebx
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], 0
je 0x40df40
push ebx
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
call fcn.0040f0bc
cmp eax, 3
jae 0x40df66
push str.Global950
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40df66
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x105
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call fcn.0041b420
add esp, 0xc
cmp dword [esp + 0x170], 0
jne 0x40e035
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0xbc]
push eax
push 1
call fcn.0040dd5c
cmp dword [eax], ebx
je 0x40dfbc
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0xbc]
push eax
push 1
call fcn.0040dd5c
push ebx
call dword [eax]
mov ebx, eax
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0xb4]
push eax
push 1
call fcn.0040dd5c
cmp dword [eax], 0
je 0x40dffa
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0xb4]
push eax
push 1
call fcn.0040dd5c
push 0x105
lea ecx, [esp + 0x58]
push ecx
push ebx
call dword [eax]
xor ebx, ebx
jmp 0x40dffe
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x40e423
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0041883c
pop ecx
pop ecx
mov byte [esp + 0x164], 2
push eax
mov ecx, edi
call fcn.0040e4d1
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x3c]
jmp 0x40e064
push dword [esp + 0x170]
lea eax, [esp + 0x28]
push eax
call fcn.0041883c
pop ecx
pop ecx
mov byte [esp + 0x164], 3
push eax
mov ecx, edi
call fcn.0040e4d1
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x24]
call fcn.0040165f
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.0040dd5c
cmp dword [eax], ebx
je 0x40e0ac
cmp dword [edi + 0x14], 0x10
jb 0x40e086
mov edi, dword [edi]
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.0040dd5c
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [eax]
jmp 0x40e0ae
mov eax, ebx
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
je 0x40e3f8
call fcn.0040f0bc
cmp eax, 2
jae 0x40e0d3
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.0040f0bc
cmp eax, 2
jae 0x40e0ec
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.0040f0bc
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 3
jae 0x40e105
push str.Local786
push ebx
push ebx
call edi
call fcn.0040f0bc
cmp eax, 3
jae 0x40e118
push str.Local744
push ebx
push ebx
call edi
call fcn.0040f0bc
cmp eax, 3
jae 0x40e13e
push str.Global759
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40e13e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040f0bc
cmp eax, 3
jae 0x40e151
push str.Local125
push ebx
push ebx
call edi
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], 0
je 0x40e16e
push ebx
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
call fcn.0040f0bc
cmp eax, 2
jae 0x40e18a
push str.607607
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40e18a
push eax
call ebp
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], 0
je 0x40e1be
push 0x15
pop edi
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x15
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
dec edi
jne 0x40e198
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0x58]
push eax
push 1
call fcn.004013b5
cmp dword [eax], ebx
je 0x40e1f1
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0x58]
push eax
push 1
call fcn.004013b5
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x34]
call dword [eax]
jmp 0x40e1f3
mov eax, ebx
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x40e3f8
call fcn.0040f0bc
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, 2
jae 0x40e229
push str.Local10864
push 1
push 1
push 0
call ebx
test eax, eax
je 0x40e229
push eax
call ebp
call fcn.0040f0bc
cmp eax, 2
jae 0x40e247
push str.Local10865
push 1
push 1
push 0
call ebx
test eax, eax
je 0x40e247
push eax
call ebp
call fcn.0040f0bc
cmp eax, 2
jae 0x40e268
push 2
call fcn.0041a976
pop ecx
test eax, eax
je 0x40e268
push eax
mov byte [eax + 1], 0xde
call fcn.0040c4f8
pop ecx
call fcn.0040f0bc
cmp eax, 3
jae 0x40e27d
push str.Local924
push 0
push 0
call edi
call fcn.0040f0bc
cmp eax, 2
jae 0x40e29a
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.0040f0bc
cmp eax, 3
jae 0x40e2c1
push str.Global831
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40e2c1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ecx, ecx
mov byte [esp + 0x13], cl
cmp byte [esp + 0x13], cl
je 0x40e2fa
mov edi, 0x3c0
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x3c0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
pop ecx
dec edi
jne 0x40e2d2
call fcn.0040f0bc
cmp eax, 2
jae 0x40e317
push str.Local10874
push 1
push 1
push ecx
call ebx
test eax, eax
je 0x40e317
push eax
call ebp
xor ecx, ecx
mov byte [esp + 0x13], cl
cmp byte [esp + 0x13], cl
je 0x40e350
mov edi, 0x1db
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x1db
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
pop ecx
dec edi
jne 0x40e328
mov byte [esp + 0x13], cl
cmp byte [esp + 0x13], 0
je 0x40e371
push ecx
push ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
xor ecx, ecx
call fcn.0040f0bc
cmp eax, 2
jae 0x40e38e
push ecx
push 1
push 1
push ecx
call ebx
test eax, eax
je 0x40e38e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040f0bc
cmp eax, 2
jae 0x40e3ac
push str.Local10878
push 1
push 1
push 0
call ebx
test eax, eax
je 0x40e3ac
push eax
call ebp
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0xfc]
push eax
push 1
call fcn.004013b5
xor ebx, ebx
cmp dword [eax], ebx
je 0x40e3e6
mov ecx, dword [0x4387c0]
lea eax, [ecx + 0xfc]
push eax
push 1
call fcn.004013b5
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x38]
call dword [eax]
jmp 0x40e3e8
mov eax, ebx
push ebx
push dword [esi + 0x34]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x40e423
mov ecx, dword [edx + 0x3c]
mov eax, dword [ecx + edx + 0x9c]
add eax, dword [ecx + edx + 0x98]
cmp eax, dword [esi + 0x28]
jne 0x40e423
push dword [esi + 0x28]
mov ecx, esi
push edx
call fcn.0040ef2a
mov byte [esi + 0x30], al
or dword [esp + 0x164], 0xffffffff
mov ecx, dword [esp + 0x15c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4