Function at 0x4afae0
Capabilities:
Delete file
Get common file path
Print debug messages
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x98c
mov eax, dword [0x6963f4]
xor eax, esp
mov dword [esp + 0x984], eax
mov eax, dword [0x6b4220]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
je 0x4b0a44
mov ebx, 1
cmp dword [eax + 0x24], ebx
jb 0x4b0a44
lea eax, [esp + 0x888]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x4b0a39
lea ecx, [esp + 0x888]
push ecx
push ebp
push str.TxSnp
mov edx, ecx
push edx
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x4b0a39
lea eax, [esp + 0x888]
push 0x65140c
push eax
call fcn.0059f606
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x10], edi
je 0x4b0a44
call fcn.004af120
test eax, eax
jne 0x4afb97
push edi
call fcn.0059f7da
add esp, 4
lea ecx, [esp + 0x888]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x4b0a44
push 0x100
call fcn.005a0b1e
add esp, 4
push edi
push str._rtf1_ansi_ansicpg1252deff0deflang1033
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x68], ebp
call fcn.005a7ce9
push 0x6428d8
push edi
call fcn.0059f619
mov edx, dword [0x6b424c]
shl edx, 5
push edx
mov dword [esp + 0x78], ebx
call fcn.005a0b1e
mov dword [esp + 0x50], eax
add esp, 0x14
xor eax, eax
call fcn.004af070
mov ecx, dword [esp + 0x3c]
mov esi, eax
lea eax, [esi + 0x48]
push edi
push str._fonttbl_
mov dword [esp + 0x34], eax
mov dword [ecx + 4], eax
call fcn.005a7ce9
push str._f1
push edi
call fcn.0059f619
movzx eax, byte [esi + 0x3f]
and eax, 0xf0
add esp, 0x10
cmp eax, 0x50
ja case.0x4afc39.1
movzx edx, byte [eax + 0x4b0a7c]
jmp dword [edx*4 + 0x4b0a60]
push str._fdecor
jmp 0x4afc68
push str._fnil
jmp 0x4afc68
push str._fmodern
jmp 0x4afc68
push str._fRoman
jmp 0x4afc68
push str._fscript
jmp 0x4afc68
push str._fswiss
push edi
call fcn.0059f619
add esp, 8
mov eax, dword [esp + 0x2c]
movzx ecx, byte [esi + 0x40]
push eax
push ecx
push str._fcharset_d__s_
push edi
call fcn.0059f619
push 0x400
lea edx, [esp + 0x48c]
push ebp
push edx
call fcn.005a3bb0
add esp, 0x1c
cmp dword [0x6b424c], ebp
mov dword [esp + 0x14], ebp
jbe 0x4afdf3
lea esp, [esp]
mov eax, dword [esp + 0x14]
call fcn.004af070
mov ecx, dword [esp + 0x2c]
lea ebp, [eax + 0x48]
mov dword [esp + 0x18], eax
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4afce6
test dl, dl
je 0x4afce2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4afce6
add eax, 2
add ecx, 2
test dl, dl
jne 0x4afcc6
xor eax, eax
jmp 0x4afceb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4afdd8
mov esi, 1
cmp ebx, esi
mov dword [esp + 0x24], 0
jl 0x4afd56
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4]
mov eax, ebp
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4afd30
test dl, dl
je 0x4afd2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4afd30
add eax, 2
add ecx, 2
test dl, dl
jne 0x4afd10
xor eax, eax
jmp 0x4afd35
sbb eax, eax
sbb eax, 0xffffffff
cdq
xor eax, edx
sub eax, edx
jne 0x4afd44
mov dword [esp + 0x24], 1
add esi, 1
cmp esi, ebx
jle 0x4afd04
cmp dword [esp + 0x24], 0
jne 0x4afdd8
mov ecx, dword [esp + 0x3c]
add ebx, 1
push ebx
push 0x65149c
push edi
mov dword [ecx + ebx*4], ebp
mov dword [esp + 0x38], ebp
call fcn.0059f619
mov esi, dword [esp + 0x24]
movzx eax, byte [esi + 0x3f]
and eax, 0xf0
add esp, 0xc
cmp eax, 0x50
ja case.0x4afd8c.1
movzx edx, byte [eax + 0x4b0aec]
jmp dword [edx*4 + 0x4b0ad0]
push str._fdecor
jmp 0x4afdbb
push str._fnil
jmp 0x4afdbb
push str._fmodern
jmp 0x4afdbb
push str._fRoman
jmp 0x4afdbb
push str._fscript
jmp 0x4afdbb
push str._fswiss
push edi
call fcn.0059f619
add esp, 8
movzx eax, byte [esi + 0x40]
push ebp
push eax
push str._fcharset_d__s_
push edi
call fcn.0059f619
add esp, 0x10
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [0x6b424c]
mov dword [esp + 0x14], eax
jb 0x4afcb0
mov dword [esp + 0x64], ebx
mov ecx, edi
push ecx
push 0x6514a4
call fcn.005a7ce9
xor eax, eax
mov dword [esp + 0x3c], 1
call fcn.004af070
mov ebp, dword [0x6b424c]
lea edx, [ebp*8]
push edx
mov edi, eax
call fcn.005a0b1e
mov esi, dword [edi + 0x44]
add esp, 0xc
xor ebx, ebx
test esi, esi
mov dword [esp + 0x28], eax
mov dword [eax + 4], esi
jne 0x4afe40
mov ebx, 1
mov dword [esp + 0x50], ebx
movzx eax, byte [edi + 0x45]
movzx ecx, byte [edi + 0x46]
movzx edx, byte [edi + 0x44]
add eax, ecx
add eax, edx
cmp eax, 0x28a
jle 0x4afe69
mov eax, dword [esp + 0x28]
mov ebx, 1
xor esi, esi
mov dword [esp + 0x50], ebx
mov dword [eax + 4], esi
test ebp, ebp
mov dword [esp + 0x14], 0
jbe 0x4aff17
mov ebp, dword [esp + 0x34]
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
call fcn.004af070
mov edx, dword [eax + 0x44]
cmp edx, esi
je 0x4aff00
movzx edi, byte [eax + 0x46]
movzx ecx, byte [eax + 0x45]
add ecx, edi
movzx edi, dl
add ecx, edi
cmp ecx, 0x28a
jle 0x4afec0
test ebx, ebx
jne 0x4aff00
mov edx, dword [esp + 0x28]
add ebp, 1
xor esi, esi
mov dword [edx + ebp*4], ebx
mov dword [esp + 0x50], ebp
lea ebx, [esi + 1]
jmp 0x4afefc
xor edi, edi
lea ecx, [edi + 1]
cmp ebp, ecx
jl 0x4afeee
lea esp, [esp]
mov ebp, dword [esp + 0x28]
cmp edx, dword [ebp + ecx*4]
jne 0x4afedf
mov edi, 1
mov ebp, dword [esp + 0x34]
add ecx, 1
cmp ecx, ebp
jle 0x4afed0
test edi, edi
jne 0x4aff00
mov ecx, dword [esp + 0x28]
mov eax, edx
add ebp, 1
mov dword [ecx + ebp*4], eax
mov esi, eax
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [0x6b424c]
mov dword [esp + 0x14], eax
jb 0x4afe80
mov ebp, dword [esp + 0x10]
push ebp
push str.colortbl_
call fcn.005a7ce9
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov esi, 1
add esp, 8
cmp edi, esi
jl 0x4aff66
lea ebx, [ebx]
movzx edx, byte [ebx + esi*4 + 2]
movzx eax, byte [ebx + esi*4 + 1]
movzx ecx, byte [ebx + esi*4]
push edx
push eax
push ecx
push str._red_dgreen_d_blue_d_
push ebp
call fcn.0059f619
add esi, 1
add esp, 0x14
cmp esi, edi
jle 0x4aff40
push ebp
push str.uc1_r_n
call fcn.005a7ce9
add esp, 8
push 0
call dword [sym.imp.user32.dll_GetDC]
mov edi, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov esi, eax
push 0x58
push esi
call edi
push 0x5a
push esi
mov dword [esp + 0x64], eax
call edi
push esi
xor esi, esi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.user32.dll_ReleaseDC]
xor eax, eax
call fcn.004af070
fild dword [esp + 0x24]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 0x18]
fst qword [esp + 0x70]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul qword [0x655a58]
fdivrp st(1)
fadd qword [0x655768]
call fcn.005a3c30
cmp dword [0x6b424c], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x14], esi
jbe 0x4b0950
mov esi, dword [esp + 0x14]
mov eax, esi
call fcn.004af070
test esi, esi
mov edi, eax
mov dword [esp + 0x18], edi
jne 0x4b004e
mov esi, dword [esp + 0x10]
push 0x6514d4
push esi
call fcn.0059f619
add esp, 8
push str.cf1
add edi, 0x48
push esi
mov dword [esp + 0x60], edi
call fcn.0059f619
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
add esp, 8
push eax
push str._fs_d
push esi
mov dword [esp + 0x58], edx
call fcn.0059f619
mov edi, dword [esp + 0x24]
mov ebx, esi
jmp 0x4b017a
mov eax, dword [esp + 0x58]
lea ecx, [edi + 0x48]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b0075
test dl, dl
je 0x4b0071
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b0075
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b0055
xor eax, eax
jmp 0x4b007a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b00eb
mov ebx, dword [esp + 0x64]
mov esi, 1
cmp ebx, esi
jl 0x4b00eb
mov ebp, dword [esp + 0x3c]
nop
mov edi, dword [ebp + esi*4]
mov ecx, dword [esp + 0x18]
add ecx, 0x48
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b00c0
test dl, dl
je 0x4b00bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b00c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b00a0
xor eax, eax
jmp 0x4b00c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b00e0
mov eax, dword [esp + 0x10]
push esi
push str._f_d
push eax
call fcn.0059f619
add esp, 0xc
mov dword [esp + 0x58], edi
add esi, 1
cmp esi, ebx
jle 0x4b0090
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
cmp eax, dword [edi + 0x44]
je 0x4b0137
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + 0x45]
movzx esi, byte [ecx + 0x46]
movzx ecx, byte [ecx + 0x44]
add edx, esi
add edx, ecx
cmp edx, 0x28a
jle 0x4b0227
test eax, eax
je 0x4b0137
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
push edx
push str.cf_d
push eax
call fcn.0059f619
add esp, 0xc
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 0x18]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fmul qword [0x655a58]
fdiv qword [esp + 0x70]
fadd qword [0x655768]
call fcn.005a3c30
mov ebx, dword [esp + 0x10]
mov esi, eax
cmp esi, dword [esp + 0x54]
je 0x4b017d
push esi
push str._fs_d
push ebx
call fcn.0059f619
mov dword [esp + 0x60], esi
add esp, 0xc
cmp dword [0x6b4250], 0
mov dword [esp + 0x1c], 0
jle 0x4b03ed
mov ebx, dword [esp + 0x14]
jmp 0x4b01a0
mov edx, dword [0x6b425c]
mov eax, dword [esp + 0x1c]
cmp ebx, dword [edx + eax*4]
jne 0x4b03ce
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
sub eax, dword [0x6b4248]
movzx ecx, word [ecx + 0x68]
mov dword [esp + 0x48], eax
lea eax, [eax + eax*4]
add eax, eax
cdq
idiv ecx
push 0x400
xor edi, edi
lea edx, [esp + 0x7c]
push edi
push edx
mov esi, eax
mov dword [esp + 0x4c], esi
call fcn.005a3bb0
add esp, 0xc
test esi, esi
jle 0x4b026f
fild dword [esp + 0x48]
fld qword [0x655a50]
fmul st(1), st(0)
fild dword [esp + 0x5c]
fdivp st(2)
fld qword [0x655a08]
fmul st(2), st(0)
fld qword [0x655768]
fadd st(3), st(0)
fxch st(3)
call fcn.005a3c30
mov dword [esp + 0x78], eax
mov edi, 1
jmp 0x4b0283
mov ebp, dword [esp + 0x34]
mov esi, 1
cmp ebp, esi
jl 0x4b0137
mov ebx, dword [esp + 0x28]
lea esp, [esp]
mov edi, dword [ebx + esi*4]
mov ecx, dword [esp + 0x18]
cmp edi, dword [ecx + 0x44]
jne 0x4b0263
mov edx, dword [esp + 0x10]
push esi
push str.cf_d
push edx
call fcn.0059f619
add esp, 0xc
mov dword [esp + 0x4c], edi
add esi, 1
cmp esi, ebp
jle 0x4b0240
jmp 0x4b0137
fld qword [0x655a08]
fld qword [0x655a50]
fld qword [0x655768]
fxch st(2)
mov eax, dword [0x6b4250]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jge 0x4b029f
mov edx, dword [0x6b425c]
mov eax, dword [edx + eax*4 + 4]
jmp 0x4b02a4
mov eax, dword [0x6b424c]
add eax, 0xffffffff
cmp ebx, eax
jge 0x4b0316
mov edx, dword [0x6b4258]
lea ecx, [ebx + ebx*4]
sub eax, ebx
lea esi, [edx + ecx*4 + 4]
mov ebp, eax
mov ecx, dword [esi + 0x14]
movzx edx, word [esi + 0xe]
mov eax, ecx
sub eax, edx
sub eax, dword [esi]
test eax, eax
jle 0x4b030e
movzx ebx, word [esi + 0xc]
lea eax, [eax + eax*4]
add eax, eax
cdq
idiv ebx
cmp eax, 1
jle 0x4b030a
cmp edi, 0xff
jge 0x4b030a
sub ecx, dword [0x6b4248]
mov dword [esp + 0x48], ecx
fild dword [esp + 0x48]
fmul st(2)
fidiv dword [esp + 0x5c]
fmul st(1)
fadd st(3)
call fcn.005a3c30
mov dword [esp + edi*4 + 0x78], eax
add edi, 1
mov ebx, dword [esp + 0x14]
add esi, 0x14
sub ebp, 1
jne 0x4b02bc
test edi, edi
fstp st(1)
fstp st(0)
fstp st(0)
je 0x4b037a
xor eax, eax
test edi, edi
jle 0x4b037a
jmp 0x4b0330
mov ecx, dword [esp + eax*4 + 0x78]
cmp ecx, dword [esp + eax*4 + 0x478]
jne 0x4b0346
add eax, 1
cmp eax, edi
jl 0x4b0330
jmp 0x4b037a
cmp eax, edi
jge 0x4b037a
mov ebp, dword [esp + 0x10]
push str.pard
push ebp
call fcn.0059f619
add esp, 8
xor esi, esi
mov edi, edi
mov edx, dword [esp + esi*4 + 0x78]
push edx
push str._tx_d
push ebp
call fcn.0059f619
add esi, 1
add esp, 0xc
cmp esi, edi
jl 0x4b0360
cmp dword [esp + 0x40], 0
mov ecx, 0x100
lea esi, [esp + 0x78]
lea edi, [esp + 0x478]
rep movsd dword es:[edi], dword [esi]
jle 0x4b03ce
cmp dword [esp + 0x20], 0
mov dword [esp + 0x44], 1
je 0x4b03bc
mov eax, dword [esp + 0x10]
push eax
push str.ul0
call fcn.005a7ce9
add esp, 8
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x10]
push str._tab
push ecx
call fcn.0059f619
add esp, 8
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [0x6b4250]
mov dword [esp + 0x1c], eax
jl 0x4b01a0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
movzx eax, byte [edi + 0x3c]
cmp dword [esp + 0x6c], eax
je 0x4b0418
mov dword [esp + 0x6c], eax
test eax, eax
mov eax, 0x639ce8
jne 0x4b0409
mov eax, 0x63b008
push eax
push str.i_s
push ebx
call fcn.0059f619
add esp, 0xc
movzx eax, byte [edi + 0x3d]
cmp dword [esp + 0x20], eax
je 0x4b0443
mov dword [esp + 0x20], eax
test eax, eax
mov eax, 0x639ce8
jne 0x4b0434
mov eax, 0x63b008
push eax
push str.ul_s
push ebx
call fcn.0059f619
add esp, 0xc
movzx eax, byte [edi + 0x3e]
cmp dword [esp + 0x68], eax
je 0x4b046e
mov dword [esp + 0x68], eax
test eax, eax
mov eax, 0x639ce8
jne 0x4b045f
mov eax, 0x63b008
push eax
push str._strike_s
push ebx
call fcn.0059f619
add esp, 0xc
xor eax, eax
cmp dword [edi + 0x28], 0x258
setg al
cmp dword [esp + 0x60], eax
je 0x4b04a1
mov dword [esp + 0x60], eax
test eax, eax
mov eax, 0x639ce8
jne 0x4b0492
mov eax, 0x63b008
push eax
push str._b_s
push ebx
call fcn.0059f619
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0x65153c
lea edi, [eax + 0x6c]
mov dword [esp + 0x34], 0
movzx eax, word [eax]
push 0
push 0
add eax, 1
push eax
push edi
push 0x400
call dword [sym.imp.kernel32.dll_GetACP]
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, dword [esp + 0x30]
mov esi, eax
cmp ebp, esi
jg 0x4b0502
mov ecx, dword [esp + 0x38]
lea ebp, [esi + 0x100]
push ebp
push ecx
mov dword [esp + 0x38], ebp
call fcn.0059f2ae
mov ebx, eax
add esp, 8
mov dword [esp + 0x38], ebx
jmp 0x4b0506
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x2c], eax
jne 0x4b05ce
push eax
push eax
movzx eax, word [edx]
push esi
push ebx
add eax, 1
push eax
push edi
push 0
call dword [sym.imp.kernel32.dll_GetACP]
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, ebx
mov byte [esi + ebx - 1], 0
lea edx, [eax + 1]
jmp 0x4b0540
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b0540
sub eax, edx
lea ecx, [eax + eax + 2]
cmp ebp, ecx
jg 0x4b057b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b0558
sub eax, edx
lea eax, [eax + eax + 2]
push eax
push ebx
mov dword [esp + 0x38], eax
call fcn.0059f2ae
mov ebx, eax
add esp, 8
mov dword [esp + 0x38], ebx
cmp byte [ebx], 0
mov esi, ebx
je 0x4b0791
mov al, byte [esi]
cmp al, 0x5c
je 0x4b0594
cmp al, 0x7d
je 0x4b0594
cmp al, 0x7b
jne 0x4b05c1
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b05a0
sub eax, edx
add eax, 1
push eax
lea edi, [esi + 1]
push esi
push edi
call fcn.005a1460
mov byte [esi], 0x5c
add esp, 0xc
mov esi, edi
add esi, 1
cmp byte [esi], 0
jne 0x4b0586
jmp 0x4b0791
mov byte [ebx], 0
cmp word [edx], ax
mov word [esp + 0x26], ax
mov dword [esp + 0x1c], eax
jbe 0x4b0791
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x30]
mov cx, word [eax]
xor eax, eax
lea edx, [esp + 0x2c]
push edx
push 0x65153c
push 0x10
mov dword [esp + 0x884], eax
mov dword [esp + 0x888], eax
mov dword [esp + 0x88c], eax
mov dword [esp + 0x890], eax
lea eax, [esp + 0x884]
push eax
mov word [esp + 0x34], cx
push 1
lea ecx, [esp + 0x38]
push ecx
push 0x400
call dword [sym.imp.kernel32.dll_GetACP]
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
je 0x4b076a
cmp dword [esp + 0x2c], 0
je 0x4b066a
movzx edx, word [esp + 0x24]
push edx
lea eax, [esp + 0x87c]
push str.u_d_
push eax
call fcn.0059e1a7
add esp, 0xc
jmp 0x4b06d7
movsx eax, byte [esp + 0x878]
sub eax, 0x5c
je 0x4b06bc
sub eax, 0x1f
je 0x4b069f
sub eax, 2
jne 0x4b06d7
mov cx, word [0x651548]
mov dl, byte [0x65154a]
mov word [esp + 0x878], cx
mov byte [esp + 0x87a], dl
jmp 0x4b06d7
mov ax, word [0x65154c]
mov cl, byte [0x65154e]
mov word [esp + 0x878], ax
mov byte [esp + 0x87a], cl
jmp 0x4b06d7
mov dx, word [0x63f4ac]
mov al, byte [0x63f4ae]
mov word [esp + 0x878], dx
mov byte [esp + 0x87a], al
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b06e0
sub eax, edx
mov edx, eax
lea eax, [esp + 0x878]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b06f7
sub eax, esi
lea ecx, [eax + edx + 1]
cmp ebp, ecx
jg 0x4b0732
lea eax, [esp + 0x878]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b0714
sub eax, edx
lea ebp, [eax + ebp + 0x100]
push ebp
push ebx
call fcn.0059f2ae
add esp, 8
mov ebx, eax
lea eax, [esp + 0x878]
mov ecx, eax
jmp 0x4b0740
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4b0740
mov edi, ebx
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4b0752
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx ecx, word [edx]
add dword [esp + 0x30], 2
add eax, 1
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4b05e7
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x10]
push edx
push ebx
call fcn.005a7ce9
mov eax, dword [0x6b424c]
add eax, 0xffffffff
add esp, 8
cmp dword [esp + 0x14], eax
jae 0x4b0931
mov eax, dword [esp + 0x14]
mov edx, dword [0x6b4258]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*4 + 8]
movzx edi, word [edx + ecx*4 + 0xc]
mov ebp, dword [edx + ecx*4 + 0x1c]
lea esi, [edx + ecx*4]
movzx ecx, word [esi + 0x20]
mov dword [esp + 0x40], eax
sub eax, ebp
cmp edi, ecx
mov dword [esp + 0x1c], edi
jl 0x4b07e4
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
cdq
mov ebx, eax
xor ebx, edx
fmul qword [0x655790]
sub ebx, edx
fadd qword [0x655768]
call fcn.005a3c30
cmp ebx, eax
jg 0x4b0898
movzx ecx, word [esi + 0x12]
mov eax, dword [esi + 0x18]
sub eax, ecx
sub eax, dword [esi + 4]
test eax, eax
jle 0x4b0931
movzx ecx, word [esi + 0x10]
lea eax, [eax + eax*4]
add eax, eax
cdq
idiv ecx
test eax, eax
je 0x4b0931
cmp eax, 2
jge 0x4b085b
test eax, eax
jle 0x4b0931
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push 0x63eae8
call fcn.005a7ce9
add esp, 8
sub esi, 1
jne 0x4b0843
jmp 0x4b0931
cmp dword [esp + 0x20], 0
mov dword [esp + 0x44], 1
je 0x4b0884
mov edx, dword [esp + 0x10]
push edx
push str.ul0
call fcn.005a7ce9
add esp, 8
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
push str._tab
push eax
call fcn.0059f619
jmp 0x4b092e
sub ebp, dword [esp + 0x40]
mov dword [esp + 0x48], edi
cmp edi, ebp
mov dword [esp + 0x40], ebp
jge 0x4b08fd
fild dword [esp + 0x40]
fidiv dword [esp + 0x48]
call fcn.005a3c30
cmp eax, 1
jl 0x4b0931
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x44], 0
mov esi, eax
lea esp, [esp]
test ebx, ebx
je 0x4b08e4
push edi
push str.ul0
call fcn.005a7ce9
add esp, 8
xor ebx, ebx
push edi
push 0x651550
call fcn.005a7ce9
add esp, 8
sub esi, 1
jne 0x4b08d0
mov dword [esp + 0x20], ebx
jmp 0x4b0931
xor esi, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x44], esi
je 0x4b091f
mov ecx, dword [esp + 0x10]
push ecx
push str.ul0
call fcn.005a7ce9
add esp, 8
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x10]
push edx
push 0x651550
call fcn.005a7ce9
add esp, 8
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [0x6b424c]
mov dword [esp + 0x14], eax
jb 0x4affec
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
push ebx
call fcn.005a01b3
mov eax, dword [0x6b425c]
add esp, 4
push eax
call fcn.005a01b3
mov ecx, dword [esp + 0x40]
add esp, 4
xor esi, esi
push ecx
mov dword [0x6b425c], esi
call fcn.005a01b3
mov edx, dword [0x6b4258]
add esp, 4
push edx
call fcn.005a01b3
mov eax, dword [0x6b4254]
add esp, 4
cmp eax, esi
mov dword [0x6b4258], esi
je 0x4b09a3
push eax
call fcn.0059f7da
add esp, 4
mov eax, dword [esp + 0x38]
push eax
mov dword [0x6b4254], esi
call fcn.005a01b3
add esp, 4
cmp dword [esp + 0x44], esi
push ebp
je 0x4b09c4
push str.par_r_n
jmp 0x4b09c9
push 0x63eae4
call fcn.005a7ce9
add esp, 8
push ebp
call fcn.005a1e04
mov edi, eax
add esp, 4
lea ecx, [edi + 1]
push ecx
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4b0a1e
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebx, dword [esp + 0x10]
push ebx
mov ebp, eax
call fcn.005a7e2b
add esp, 4
push ebx
push edi
push 1
push ebp
call fcn.005a210e
add esp, 0x10
push esi
mov byte [edi + ebp], 0
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov ebp, ebx
push ebp
call fcn.0059f7da
add esp, 4
lea edx, [esp + 0x888]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, esi
jmp 0x4b0a46
push str.Cannot_get_temp_path_in_ProcessCaptureRtf___r_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [esp + 0x994]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059e0c2
add esp, 0x98c
ret