Function at 0x1004a4ff
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0
pop ebx
mov eax, edx
mov esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esi
cmp byte [ebp + 0x10], bl
je 0x1004a5f9
mov dword [ebp - 0x18], 0x5079
cmp dword [ebp - 0x18], 0x50b4
jle 0x1004a5a4
mov edi, ebx
mov dword [ebp - 0x10], ebx
mov eax, ebx
mov dword [ebp - 0xc], ebx
mov ecx, eax
mov dword [ebp - 0x1c], edi
mov esi, ebx
sar edi, cl
mov eax, edi
lea ecx, [ebp - 0x38]
or eax, esi
cdq
push edx
push eax
call fcn.100019c5
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004a55a
mov eax, dword [eax]
push eax
call fcn.1004d87c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.1000d197
inc esi
cmp esi, 0x54f5
jl 0x1004a541
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x2e10
jl 0x1004a538
inc edi
mov dword [ebp - 0x10], edi
cmp edi, 0x20c0
jl 0x1004a533
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
cmp byte [ebp + 0x14], 0
je 0x1004a5c3
push ecx
push ecx
push 0x7754
xor dl, dl
mov byte [ebp + 0x13], bl
lea ecx, [ebp + 0x13]
call fcn.1004a241
add esp, 0xc
jmp 0x1004a5dc
mov dword [esi], ebx
jmp 0x1004a5d7
mov ecx, dword [esi]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xfffffff9
inc dword [esi]
mov eax, dword [ebp - 0x14]
cmp dword [esi], 4
jl 0x1004a5c7
cmp dword [ebp - 0x18], 0x4d23
jge 0x1004a7d4
push str.nvlxluepg_wqs_haufdlrs_flocshu_uedmp
call fcn.1004d87c
pop ecx
jmp 0x1004a7d4
mov dword [ebp - 0x18], 0x6554
cmp dword [ebp - 0x18], 0x66fd
jle 0x1004a637
mov esi, ebx
mov edi, ebx
mov eax, edi
mov ecx, 0x1007bbb8
and eax, esi
cdq
push edx
push eax
call fcn.1000cbc0
inc edi
cmp edi, 0x65bb
jl 0x1004a60d
inc esi
cmp esi, 0x2f40
jl 0x1004a60b
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x18], 0x6310
jge 0x1004a64f
mov edx, str.rdupaykqo_tsmiw_lshsn_kbivj_qvfhjk_slk_dyd_xvy_gvdumlnkb_uakrejdl_ttdaxy_cpdqgb_nakabgxb
mov ecx, 0x1007bbb8
call fcn.1000ee07
cmp byte [ebp + 0x18], 0
je 0x1004a674
push ebx
lea eax, [ebp - 5]
mov byte [ebp - 5], bl
push eax
push 0x62ef
mov ecx, 0x4fc4
call fcn.1004a7db
add esp, 0xc
jmp 0x1004a7d4
mov dword [ebp - 0xc], 0x65d9
cmp dword [ebp - 0xc], 0x6898
jle 0x1004a6fe
mov esi, ebx
mov dword [ebp - 0x10], ebx
mov edi, ebx
mov dword [ebp - 0x14], ebx
mov eax, esi
mov dword [ebp - 0x18], 0x3850
cdq
idiv edi
mov edi, ebx
mov dword [ebp - 0x1c], edx
mov esi, ebx
mov eax, edi
lea ecx, [ebp - 0x50]
cdq
idiv esi
mov eax, edx
cdq
push edx
push eax
call fcn.100019c5
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004a6bd
mov eax, dword [eax]
push eax
call fcn.1004d87c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.1000d197
inc esi
cmp esi, 0x78b8
jl 0x1004a6a1
add edi, dword [ebp - 0x1c]
dec dword [ebp - 0x18]
jne 0x1004a69f
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x77a7
jl 0x1004a68e
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 0x3373
jl 0x1004a689
cmp dword [ebp - 0xc], 0x6545
jge 0x1004a712
push str.kpv_flxqbue_dchtm_rsl_leimirqpm
call fcn.1004d87c
pop ecx
mov dword [ebp - 0xc], 0x10b4
cmp dword [ebp - 0xc], 0x149b
jle 0x1004a7a1
mov esi, ebx
mov dword [ebp - 0x10], ebx
mov edi, ebx
mov dword [ebp - 0x14], ebx
mov eax, ebx
mov dword [ebp - 0x18], ebx
lea ecx, [eax + edi]
mov edi, esi
sar edi, cl
mov esi, ebx
mov eax, edi
lea ecx, [ebp - 0x68]
or eax, esi
cdq
push edx
push eax
call fcn.100019c5
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004a753
mov eax, dword [eax]
push eax
call fcn.1004d87c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.1000d197
inc esi
cmp esi, 0x2da3
jl 0x1004a73a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
inc eax
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp eax, 0x326a
jl 0x1004a731
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x677f
jl 0x1004a72c
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 0x3564
jl 0x1004a727
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
cmp dword [ebp - 0xc], 0xd4f
jge 0x1004a7b5
push str.ewn_iuwtqy_ibumtujot_ccnybvlu_jwvcviq_lwoqwgwl_cifspli_doiybekkq_lmkmnkykj_bxtjmivhq_lilivnih_djgutkvn
call fcn.1004d87c
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx], ebx
cmp dword [edx], 2
jge 0x1004a7d4
mov esi, dword [ebp + 0xc]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [edx]
cmp dword [edx], 2
jl 0x1004a7c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret