Function at 0x4115d0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4338f6
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x43b2e0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b2e0]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x18c]
mov eax, dword [ebp + 8]
mov edi, ecx
mov esi, edx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], esi
call fcn.00402890
xor ebx, ebx
add esp, 4
mov ecx, ebp
mov dword [ebp + 8], ebx
call fcn.004028c0
test al, al
je 0x411651
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 4], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x184], ebx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x188], 1
call fcn.0040fba0
cmp esi, ebx
je 0x411858
mov ecx, dword [0x4401a4]
cmp ecx, ebx
je 0x411698
mov eax, 0x4401a4
call fcn.0040fca0
mov ecx, dword [0x4401a4]
jmp 0x41169a
xor eax, eax
mov dword [esp + 0x20], eax
cmp ecx, ebx
je 0x4116ab
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0x10]
dec eax
jmp 0x4116ad
xor eax, eax
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x24]
mov dword [esp + 0x28], eax
call fcn.0040fd30
test al, al
jne 0x411863
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040fba0
mov dword [esp + 0x20], 0x4374a4
xor eax, eax
lea ecx, [ecx]
inc eax
cmp byte [eax + 0x4374a4], 0
jne 0x4116e0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
call fcn.0040fdd0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x411710
inc dword [eax + 0x1c]
test ecx, ecx
je 0x411720
add dword [ecx + 0x1c], 0xffffffff
jne 0x411720
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
push 0x66
lea eax, [esp + 0x18]
push eax
call fcn.004100e0
lea ecx, [esp + 0x14]
call fcn.004028e0
push eax
call fcn.00414330
add esp, 4
test eax, eax
je 0x411863
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
lea esi, [ebx + 0x14]
push esi
lea ebp, [ebx + 0xc]
push ebp
mov edi, eax
call fcn.004147f0
test eax, eax
jne 0x4117d0
mov ebx, 0x31
cmp ebx, 0x39
jle 0x411770
mov ebx, 0x61
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x411783
inc dword [eax + 0x1c]
test ecx, ecx
je 0x411793
add dword [ecx + 0x1c], 0xffffffff
jne 0x411793
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
push ebx
lea ecx, [esp + 0x18]
push ecx
call fcn.004100e0
lea ecx, [esp + 0x14]
call fcn.004028e0
push eax
call fcn.00414330
add esp, 4
test eax, eax
je 0x41185f
mov edx, dword [esp + 0x1c]
push esi
push ebp
mov edi, eax
call fcn.004147f0
test eax, eax
jne 0x4117cc
inc ebx
jmp 0x411766
mov ebx, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
or edi, 0xffffffff
push eax
mov dword [ebx + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, ebx
mov dword [ebx + 4], eax
xor esi, esi
call fcn.004028c0
test al, al
je 0x411830
mov ecx, ebx
call fcn.004028a0
test eax, eax
jg 0x411814
mov ecx, ebx
call fcn.004028a0
mov esi, eax
dec esi
cmp dword [ebx + 0x10], esi
je 0x411830
mov edx, dword [ebp]
mov eax, dword [ebx + 4]
push 0
push 0
add edx, esi
push edx
push eax
mov dword [ebx + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 0
call fcn.00402850
lea ecx, [esp + 0x18]
mov dword [esp + 0x184], edi
call fcn.00402850
xor eax, eax
jmp 0x411b2e
mov eax, edi
jmp 0x411929
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040fba0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x411895
lea eax, [esp + 0x18]
call fcn.0040fca0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x411897
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
dec ecx
jmp 0x411899
xor eax, eax
xor ecx, ecx
cmp byte [ecx + eax - 1], 0x2f
je 0x4118f0
test edx, edx
je 0x4118be
lea eax, [esp + 0x18]
call fcn.0040fca0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4118c0
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
dec ecx
jmp 0x4118c2
xor eax, eax
xor ecx, ecx
cmp byte [ecx + eax - 1], 0x5c
je 0x4118f0
mov dword [esp + 0x20], 0x4374a8
xor eax, eax
inc eax
cmp byte [eax + 0x4374a8], 0
jne 0x4118d3
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040fdd0
xor eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
cmp byte [edi], al
je 0x41190b
mov edi, edi
inc eax
cmp byte [eax + edi], 0
jne 0x411900
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040fdd0
lea ecx, [esp + 0x18]
call fcn.004028e0
mov ebp, dword [esp + 0x28]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
je 0x411986
push ebx
push eax
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x14]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ebx
mov byte [esp + 0x184], bl
call fcn.00402850
lea ecx, [esp + 0x18]
mov dword [esp + 0x184], 0xffffffff
call fcn.00402850
xor eax, eax
jmp 0x411b2e
cmp esi, ebx
je 0x411b05
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040fba0
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, 0x31
cmp esi, 0x39
jle 0x4119af
mov esi, 0x61
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4119c2
inc dword [eax + 0x1c]
cmp ecx, ebx
je 0x4119d2
add dword [ecx + 0x1c], 0xffffffff
jne 0x4119d2
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
push esi
lea ecx, [esp + 0x18]
push ecx
call fcn.004100e0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
call fcn.004028e0
push eax
call ebp
cmp eax, 0xffffffff
je 0x411b05
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x411a19
lea eax, [esp + 0x14]
call fcn.0040fca0
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x411a1b
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
dec ecx
jmp 0x411a1d
xor eax, eax
xor ecx, ecx
cmp byte [eax + ecx - 1], 0x2f
je 0x411a73
cmp edx, ebx
je 0x411a42
lea eax, [esp + 0x14]
call fcn.0040fca0
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x411a44
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
dec ecx
jmp 0x411a46
xor eax, eax
xor ecx, ecx
cmp byte [ecx + eax - 1], 0x5c
je 0x411a73
mov dword [esp + 0x20], 0x4374a8
xor eax, eax
inc eax
cmp byte [eax + 0x4374a8], bl
jne 0x411a57
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040fdd0
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
cmp byte [ecx], bl
je 0x411a8f
inc eax
cmp byte [eax + ecx], bl
jne 0x411a85
mov dword [esp + 0x30], eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040fdd0
lea ecx, [esp + 0x14]
call fcn.004028e0
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
jne 0x411ac5
inc esi
jmp 0x4119a5
mov esi, dword [esp + 0x28]
push ebx
push eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x14]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov byte [esp + 0x184], bl
call fcn.00402850
lea ecx, [esp + 0x18]
mov dword [esp + 0x184], 0xffffffff
call fcn.00402850
xor eax, eax
jmp 0x411b2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], bl
call fcn.00402850
lea ecx, [esp + 0x18]
mov dword [esp + 0x184], 0xffffffff
call fcn.00402850
mov eax, 1
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00417068
add esp, 0x174
ret 4