Function at 0x40944f
Capabilities:
Get file size

Disassembly:
mov eax, 0x420324
call fcn.00412d4c
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x13c], ebx
lea edi, [esi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov byte [esp + 0x13c], 1
push 0x105
lea eax, [esp + 0x31]
or ebp, 0xffffffff
push ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov byte [esp + 0x38], bl
call fcn.00412430
add esp, 0xc
cmp dword [esp + 0x148], ebx
jne 0x409561
mov ecx, dword [0x42e660]
lea eax, [ecx + 0xbc]
push eax
push 1
call fcn.0040d9d1
cmp dword [eax], ebx
je 0x4094fc
mov ecx, dword [0x42e660]
lea eax, [ecx + 0xbc]
push eax
push 1
call fcn.0040d9d1
push ebx
call dword [eax]
mov ebx, eax
mov ecx, dword [0x42e660]
lea eax, [ecx + 0xb4]
push eax
push 1
call fcn.0040d9d1
cmp dword [eax], 0
je 0x40953a
mov ecx, dword [0x42e660]
lea eax, [ecx + 0xb4]
push eax
push 1
call fcn.0040d9d1
push 0x105
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [eax]
xor ebx, ebx
jmp 0x40953e
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x4096b7
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00410442
pop ecx
pop ecx
mov byte [esp + 0x13c], 2
jmp 0x40957c
push dword [esp + 0x148]
lea eax, [esp + 0x18]
push eax
call fcn.00410442
pop ecx
pop ecx
mov byte [esp + 0x13c], 3
push eax
mov ecx, edi
call fcn.00409784
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x14]
call fcn.004015cc
mov ecx, dword [0x42e660]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.0040d9d1
cmp dword [eax], ebx
je 0x4095d8
cmp dword [edi + 0x14], 0x10
jb 0x4095b2
mov edi, dword [edi]
mov ecx, dword [0x42e660]
lea eax, [ecx + 0x54]
push eax
push 1
call fcn.0040d9d1
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [eax]
jmp 0x4095da
mov eax, ebx
mov dword [esi + 0x34], eax
cmp eax, ebp
je 0x40966b
mov ecx, dword [0x42e660]
lea eax, [ecx + 0x58]
push eax
push 1
call fcn.0040d9d1
cmp dword [eax], ebx
je 0x409618
mov ecx, dword [0x42e660]
lea eax, [ecx + 0x58]
push eax
push 1
call fcn.0040d9d1
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x34]
call dword [eax]
jmp 0x40961a
mov eax, ebx
mov dword [esi + 0x38], eax
cmp eax, ebp
je 0x40966b
mov ecx, dword [0x42e660]
lea eax, [ecx + 0xfc]
push eax
push 1
call fcn.0040d9d1
cmp dword [eax], ebx
je 0x409659
mov ecx, dword [0x42e660]
lea eax, [ecx + 0xfc]
push eax
push 1
call fcn.0040d9d1
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x38]
call dword [eax]
jmp 0x40965b
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
cmp dword [esi + 0x2c], ebx
je 0x4096b7
call fcn.00409d5c
cmp eax, 3
jae 0x409690
push str.371371
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x409690
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + 0x3c]
mov eax, dword [ecx + edx + 0x9c]
add eax, dword [ecx + edx + 0x98]
cmp eax, dword [esi + 0x28]
jne 0x4096b7
push dword [esi + 0x28]
mov ecx, esi
push edx
call fcn.00409d0a
mov byte [esi + 0x30], al
mov dword [esp + 0x13c], ebp
mov ecx, dword [esp + 0x134]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4