Function at 0x48b683
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee4
mov esi, 0x4d51e8
xor edi, edi
xor eax, eax
mov dword [esi + 0x10b88], eax
xor edx, edx
mov dword [esi + 0x10b84], edx
xor ecx, ecx
mov dword [esi + 0x10b8c], ecx
mov dword [esi + 0x10c5c], 1
mov dword [esi + 0x10b70], 0xffffffff
cmp byte [0x4bbb46], 0
jne 0x48b7b0
call fcn.0048a888
test eax, eax
je 0x48b7b0
lea eax, [esi + 0x10c88]
mov cl, 1
xor edx, edx
call fcn.0040a2a8
call fcn.0048a888
test eax, eax
je 0x48b7b0
lea ecx, [esi + 0x10c88]
mov edx, 0x4bd878
mov eax, 0x4b1ad4
call fcn.0042d5d0
lea eax, [esi + 0x10c88]
call fcn.0040c61c
test al, al
je 0x48b724
mov eax, 0x32
jmp 0x48bc3e
mov eax, 0x456
call fcn.004125b4
push eax
push 0x4bd878
call fcn.0047d1f0
add esp, 8
push 0x103
lea edx, [esi + 0x10c88]
push edx
lea ecx, [esp + 0x20]
push ecx
call fcn.00497e40
add esp, 0xc
lea eax, [esi + 0x10c88]
mov dl, 1
mov byte [esp + 0x11b], 0
call fcn.0040c69c
lea eax, [esi + 0x10c88]
mov cl, 1
xor edx, edx
call fcn.0040a2a8
call fcn.0048a888
test eax, eax
je 0x48b78c
mov eax, 0x32
jmp 0x48bc3e
lea edx, [esi + 0x10c88]
mov eax, 0x4ae
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.004125b4
push eax
push 0x4bd878
call fcn.0047d1f0
add esp, 0x10
cmp byte [0x4bbb46], 0
jne 0x48b8a3
push 0
push 0x800
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
call fcn.0049c18b
cmp edx, dword [esi + 0x40]
jne 0x48b7df
cmp eax, dword [esi + 0x3c]
jae 0x48b8a3
jmp 0x48b7e5
jge 0x48b8a3
cmp dword [esi + 0x48], 0
mov cl, 1
jne 0x48b7f8
cmp dword [esi + 0x44], 0x5f5e100
jbe 0x48b861
jmp 0x48b7fa
jle 0x48b861
push 0
push 0
mov edx, 1
mov eax, dword [esi + 0x10b94]
call fcn.0048af14
mov dword [esp], eax
mov dword [esp + 4], edx
push 0
push 0
mov edx, 2
mov eax, dword [esi + 0x10b94]
call fcn.0048af14
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
push dword [esp + 4]
push dword [esp + 4]
xor edx, edx
mov eax, dword [esi + 0x10b94]
call fcn.0048af14
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
cmp edx, dword [esi + 0x40]
jne 0x48b85b
cmp eax, dword [esi + 0x3c]
seta cl
jmp 0x48b85e
setg cl
and ecx, 1
test cl, cl
je 0x48b8a3
push 0
mov eax, dword [esi + 0x44]
push eax
push dword [esi + 0x10c70]
call fcn.00499eb0
add esp, 0xc
mov edx, dword [esi + 0x10c70]
xor ecx, ecx
mov cl, byte [edx + 0x16]
push ecx
call fcn.0049a79c
pop ecx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
push 0
push 0
push dword [esi + 0x10c70]
call fcn.00499eb0
add esp, 0xc
call fcn.0048a9e8
mov ax, word [esi + 0x10bcc]
sub ax, 1
jb 0x48b8d7
je 0x48ba15
sub ax, 5
je 0x48ba3a
add eax, 0xfffffffe
sub ax, 2
jb 0x48ba8a
jmp 0x48bab2
mov ebx, 0x10000
lea eax, [esi + 0xb6c]
mov dword [esi + 0x10c80], eax
xor edx, edx
mov dword [esi + 0x10c84], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jmp 0x48b99e
mov ecx, ebp
mov eax, dword [esi + 0x10c80]
inc dword [esi + 0x10c80]
mov byte [eax], cl
inc dword [esi + 0x10c84]
mov edx, dword [esi + 0x10c84]
cmp ebx, edx
jne 0x48b99e
mov eax, dword [esi + 0x10c84]
xor edx, edx
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 0x48]
push dword [esi + 0x44]
mov edx, dword [esi + 0xb68]
mov eax, dword [edx]
mov edx, dword [edx + 4]
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
push edx
push eax
push dword [esi + 0x10b9c]
push dword [esi + 0x10b98]
call fcn.004536ec
call fcn.0047cbc0
cmp dword [0x4c77d4], 0
jne 0x48b9f0
lea eax, [esi + 0xb6c]
xor ecx, ecx
mov edx, dword [esi + 0x10c84]
call fcn.0048af60
lea eax, [esi + 0xb6c]
xor edx, edx
mov dword [esi + 0x10c80], eax
mov dword [esi + 0x10c84], edx
sub dword [esi + 0x10b7c], 1
sbb dword [esi + 0x10b80], 0
mov eax, dword [esi + 0x10b7c]
mov edx, dword [esi + 0x10b80]
cmp edx, 0
jne 0x48b9c4
cmp eax, 0
jb 0x48b9d7
jmp 0x48b9c6
jl 0x48b9d7
mov ecx, dword [esi + 0x10b78]
inc dword [esi + 0x10b78]
movzx ebp, byte [ecx]
jmp 0x48b9de
call fcn.0048ac64
mov ebp, eax
cmp ebp, 0xffffffff
je 0x48b9f0
cmp dword [esi + 0x10c58], 0
je 0x48b905
mov eax, dword [esi + 0x10c84]
test eax, eax
je 0x48bae0
lea edx, [esi + 0xb6c]
mov ecx, edx
xor edx, edx
xchg ecx, eax
xchg ecx, edx
call fcn.0048af60
jmp 0x48bae0
call fcn.00487a08
mov ebp, eax
test eax, eax
je 0x48bae0
mov edi, 6
cmp ebp, 3
je 0x48bae0
add edi, 0xfffffffc
jmp 0x48bae0
call fcn.0048e45c
mov ebp, eax
test eax, eax
je 0x48ba57
cmp ebp, 5
je 0x48ba57
mov edi, 6
cmp ebp, 3
je 0x48ba57
add edi, 0xfffffffc
cmp ebp, 5
jne 0x48bae0
mov eax, dword [esi + 0x4c]
xor edx, edx
cmp edx, dword [esi + 0x10bdc]
jne 0x48ba78
cmp eax, dword [esi + 0x10bd8]
setbe al
jmp 0x48ba7b
setle al
and eax, 1
mov edi, 1
test eax, eax
jne 0x48bae0
inc edi
jmp 0x48bae0
cmp word [esi + 0x10bcc], 9
sete al
and eax, 1
call fcn.0048a114
mov ebp, eax
test eax, eax
je 0x48bae0
mov edi, 6
cmp ebp, 3
je 0x48bae0
add edi, 0xfffffffc
jmp 0x48bae0
lea eax, [esi + 0x10d8c]
push eax
mov eax, 0x342
call fcn.004125b4
push eax
push 0x4bd878
call fcn.0047d1f0
add esp, 0xc
call fcn.0048a930
mov eax, 1
jmp 0x48bc3e
xor ebx, ebx
cmp dword [0x4c77d4], 0
je 0x48baf6
cmp byte [0x4bbb46], 0
jne 0x48baf6
mov bl, 1
mov eax, dword [esi + 0x10c58]
test eax, eax
je 0x48bb38
dec eax
jle 0x48bb33
cmp byte [0x4bba78], 0
jne 0x48bb17
cmp byte [0x4bbb46], 0
jne 0x48bb17
mov bl, 1
lea ecx, [esi + 0x10c88]
mov edx, 0x4bd878
mov eax, 0x4b1ad4
call fcn.0042d6ac
mov edi, 0x32
jmp 0x48bb38
mov edi, 1
cmp edi, 6
jne 0x48bb47
mov eax, 0x4b1ad4
call fcn.0042d570
mov edx, dword [esi + 0x10b70]
xor edx, 0xffffffff
cmp edx, dword [esi + 0x10bd4]
je 0x48bbc9
cmp edi, 1
jle 0x48bb62
cmp edi, 2
jne 0x48bbae
mov ecx, dword [esi + 0xb68]
test byte [ecx + 0x28], 1
je 0x48bb8f
lea eax, [esi + 0x10d8c]
push eax
mov eax, 0x1f8
call fcn.004125b4
push eax
push 0x4bd878
call fcn.0047d1f0
add esp, 0xc
jmp 0x48bbae
lea edx, [esi + 0x10d8c]
mov eax, 0x1f9
push edx
call fcn.004125b4
push eax
push 0x4bd878
call fcn.0047d1f0
add esp, 0xc
cmp byte [0x4bba78], 0
jne 0x48bbc2
cmp byte [0x4bbb46], 0
jne 0x48bbc2
mov bl, 1
mov edi, 2
jmp 0x48bbf5
cmp byte [0x4bbb46], 0
je 0x48bbf5
cmp dword [esi + 0x10bb0], 0
je 0x48bbf5
movzx edx, word [esi + 0x10bea]
mov eax, dword [esi + 0x10bb0]
call fcn.0048bc49
mov ebp, eax
cmp edi, eax
jge 0x48bbf5
mov edi, ebp
cmp byte [0x4bbb46], 0
jne 0x48bc1a
test edi, edi
je 0x48bc1a
mov eax, dword [esi + 0x10c70]
xor edx, edx
mov dl, byte [eax + 0x16]
push edx
call fcn.0049a79c
pop ecx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
cmp byte [0x4bbb46], 0
jne 0x48bc28
call fcn.004878d8
test bl, bl
je 0x48bc37
lea eax, [esi + 0x10c88]
call fcn.0040af3c
call fcn.0048a930
mov eax, edi
add esp, 0x11c
pop ebp
pop edi
pop esi
pop ebx
ret