Function at 0x427d30
Capabilities:
Get file size

Disassembly:
sub esp, 0x8c
mov ecx, dword [esp + 0x94]
push ebx
push ebp
push esi
lea eax, [esp + 0x28]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x18], edi
xor ebp, ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x2c]
cmp eax, edi
mov dword [esp + 0x30], eax
jne 0x427d75
cmp ecx, edi
je 0x428171
xor edx, edx
xor ebx, ebx
or ecx, edx
push 0x200
mov esi, ecx
or ebx, eax
mov dword [esp + 0x5c], esi
call fcn.004a2973
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x42817a
xor eax, eax
mov ecx, 0x80
mov edi, ebp
push eax
push eax
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
ja 0x427dc2
cmp ebx, 0x200
jbe 0x427dc9
mov esi, 0x200
jmp 0x427dcb
mov esi, ebx
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push esi
push ebp
push edx
push eax
mov dword [esp + 0x30], 0
call fcn.004296b0
add esp, 0x1c
test eax, eax
je 0x428183
cmp esi, dword [esp + 0x14]
jne 0x42818c
lea edi, [esi + esi]
push edi
call fcn.004a2973
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x24], edx
je 0x428195
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esi + esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push eax
push ebp
push ecx
push edx
call fcn.00470d60
test eax, eax
jne 0x42819e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0x20
cmp eax, ecx
ja 0x4281a7
mov ecx, 0x80
xor eax, eax
mov edi, ebp
push ebp
rep stosd dword es:[edi], eax
call fcn.00427c90
add esp, 4
test eax, eax
je 0x4281b0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
sub esi, edx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ecx
mov word [ebp + 8], si
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x4f67b0]
lea ecx, [esp + 0x3c]
stosb byte es:[edi], al
lea eax, [esp + 0x50]
xor esi, esi
push eax
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x68]
push 0x40
push ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x30], esi
push edx
mov edx, dword [ebp + 0x10]
xor eax, eax
push edx
mov al, byte [ebp + 5]
push eax
call fcn.00424d20
xor ecx, ecx
mov byte [ebp + 7], al
mov dword [esp + 0x61], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x65], ecx
mov dword [esp + 0x69], ecx
lea edx, [esp + 0x60]
mov word [esp + 0x6d], cx
push edx
mov byte [esp + 0x73], cl
lea ecx, [esp + 0x80]
push eax
push ecx
mov byte [esp + 0x6c], 0
call fcn.0042f280
mov edx, dword [esp + 0x6c]
push 0x20
push ebp
mov dword [ebp + 0xc], edx
call fcn.004289c0
mov esi, dword [esp + 0x58]
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x4c]
xor edi, edi
mov di, word [ebp + 8]
mov eax, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00410ee0
mov edi, eax
add esp, 0x38
test edi, edi
je 0x4281b9
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0xa8]
push edx
push eax
push esi
call fcn.00429600
add esp, 0xc
test eax, eax
je 0x4281c2
mov ecx, dword [esp + 0xac]
push 0
push 0
push 0
push esi
mov dword [ecx], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov dword [esp + 0x28], 0
mov dx, word [ebp + 8]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ebp]
mov edx, dword [edi]
push ecx
push eax
push ecx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
test eax, eax
je 0x4281cb
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x4281d4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push ecx
push ebp
push esi
push edx
call fcn.004296e0
add esp, 0x14
test eax, eax
je 0x4281dd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x4281e4
xor ecx, ecx
sub ebx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], 0
sbb eax, ecx
mov dword [esp + 0x34], eax
jne 0x42804c
test ebx, ebx
jbe 0x42815d
mov eax, dword [esp + 0x34]
test eax, eax
ja 0x42805c
cmp ebx, 0x200
jbe 0x428063
mov esi, 0x200
jmp 0x428065
mov esi, ebx
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push 0
lea edx, [esp + 0x18]
push 0
push edx
push esi
push ebp
push eax
push ecx
call fcn.004296b0
add esp, 0x1c
test eax, eax
je 0x428124
mov eax, dword [esp + 0x14]
test eax, eax
je 0x428146
cmp eax, esi
jne 0x428146
lea ecx, [esp + 0x28]
mov edx, dword [edi]
push ecx
push eax
push ebp
push eax
mov eax, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
test eax, eax
je 0x42812b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ebp
push ecx
push edx
call fcn.004296e0
add esp, 0x14
test eax, eax
je 0x428134
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x42813d
sub ebx, eax
mov eax, dword [esp + 0x34]
sbb eax, 0
mov dword [esp + 0x34], eax
jne 0x42804c
test ebx, ebx
ja 0x42804c
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x10], eax
jmp 0x4281f3
push 0xe78
jmp 0x42814b
push 0xe87
push 0x11
jmp 0x42814d
push 0xe8e
push 0xe
jmp 0x42814d
push 0xe95
push 0xe
jmp 0x42814d
push 0xe7f
push 0xd
call fcn.00424810
add esp, 8
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x10], eax
jmp 0x4281f3
push 0xdd9
push 0xd
jmp 0x4281eb
push 0xde2
push 0x21
jmp 0x4281eb
push 0xdef
push 0xd
jmp 0x4281eb
push 0xdf5
push 0xd
jmp 0x4281eb
push 0xdff
push 0x21
jmp 0x4281eb
push 0xe08
push 0x2f
jmp 0x4281eb
push 0xe0e
push 0x30
jmp 0x4281eb
push 0xe17
push 7
jmp 0x4281eb
push 0xe39
push 0xc
jmp 0x4281eb
push 0xe43
push 0x25
jmp 0x4281eb
push 0xe53
push 0x11
jmp 0x4281eb
push 0xe59
push 0x11
jmp 0x4281eb
push 0xe63
jmp 0x4281e9
push 0xe69
push 0xe
call fcn.00424810
add esp, 8
mov ecx, dword [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test ebp, ebp
je 0x42820e
push ebp
call fcn.004a299c
add esp, 4
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x428223
push eax
call fcn.004a299c
add esp, 4
mov eax, dword [esp]
add esp, 0x8c
ret